Function at 0x541c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0xb0]
mov eax, dword [eax]
mov ecx, dword [edx]
cmp ecx, eax
mov dword [esp + 0x1c], eax
je 0x5421b9
mov eax, dword [ebp + 8]
cmp ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
je 0x542121
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 0xc]
mov esi, eax
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
mov edi, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
mov ebx, eax
mov dword [esp + 0x40], eax
mov eax, esi
sub eax, edi
mov dword [esp + 0x24], edx
mov edx, edi
sar eax, 2
sub eax, 1
lea esi, [eax + eax*4]
lea esi, [eax + esi*4]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x1c]
sub esi, dword [esp + 0x28]
mov eax, esi
mov esi, ebx
mov ebx, ecx
sar eax, 3
sub esi, ecx
sub ebx, dword [esp + 0x24]
imul eax, eax, 0xaaaaaaab
sar esi, 3
add eax, dword [esp + 0x20]
imul esi, esi, 0xaaaaaaab
add eax, esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
sub edx, esi
mov dword [esp + 0x4c], esi
sar edx, 2
mov dword [esp + 0x48], eax
sub eax, dword [esp + 0x2c]
sub edx, 1
lea edi, [edx + edx*4]
lea edi, [edx + edi*4]
mov edx, ebx
sar eax, 3
sar edx, 3
imul edx, edx, 0xaaaaaaab
imul eax, eax, 0xaaaaaaab
add edx, edi
mov edi, dword [ebp + 0x24]
lea ebx, [edx + eax]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
mov edx, edi
sub edx, esi
mov esi, dword [esp + 0x18]
sub esi, dword [esp + 0x30]
sar edx, 2
sub edx, 1
lea edi, [edx + edx*4]
lea edi, [edx + edi*4]
mov edx, esi
sar edx, 3
imul edx, edx, 0xaaaaaaab
add edx, edi
add eax, edx
sub eax, dword [esp + 0x20]
shr eax, 1
cmp eax, ebx
jb 0x541fae
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
cmp ecx, edi
je 0x542181
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
lea ebx, [esp + 0x70]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
mov edx, dword [esi + 8]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x88], edx
lea edx, [esp + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], edx
call fcn.00549b00
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 4], eax
mov dword [esp + 0x78], edx
call fcn.0053d0b0
sub esp, 8
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], ecx
add ecx, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
cmp eax, ecx
mov dword [esp + 0x20], eax
jbe 0x541efb
mov edi, dword [esp + 0x20]
mov dword [esp + 0x30], esi
mov esi, ecx
mov dword [esp + 0xb0], ebp
mov ebp, dword [esi]
lea ebx, [ebp + 0x1f8]
nop
lea esi, [esi]
mov eax, dword [ebp]
lea edx, [ebp + 8]
cmp eax, edx
je 0x541ee2
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add ebp, 0x18
cmp ebx, ebp
jne 0x541ed0
add esi, 4
cmp edi, esi
ja 0x541ec3
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0xb0]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x20], ecx
je 0x5421d6
cmp esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
je 0x541f2b
mov eax, dword [esi]
lea edx, [esi + 8]
cmp eax, edx
je 0x541f24
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add esi, 0x18
cmp ebx, esi
jne 0x541f13
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x18], ecx
je 0x541f58
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
lea esi, [esi]
mov eax, dword [ebx]
lea edx, [ebx + 8]
cmp eax, edx
je 0x541f51
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add ebx, 0x18
cmp esi, ebx
jne 0x541f40
mov ebx, dword [esp + 0x8c]
mov esi, dword [ebp + 0x14]
cmp ebx, esi
jbe 0x541f81
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esi]
add esi, 4
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
cmp ebx, esi
ja 0x541f70
mov eax, dword [esp + 0x80]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [ebp + 0x14], eax
jmp 0x5420bb
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x20]
cmp esi, edi
je 0x54219d
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x60]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x70]
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 8]
mov dword [esp + 8], edx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
call fcn.0054a330
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x8c], edx
neg eax
mov dword [esp], eax
mov dword [esp + 0x80], edi
call fcn.0053dde0
mov edx, dword [eax]
sub esp, 4
mov ecx, ebp
mov dword [esp + 0x70], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x78], edx
mov eax, dword [eax + 0xc]
mov dword [esp], ebx
mov dword [esp + 0x7c], eax
call fcn.00541040
sub esp, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x80], ebx
mov dword [esp], eax
call fcn.0053dde0
sub esp, 4
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x14]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp dword [esp + 0x1c], eax
jne 0x541ca5
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x80], ecx
mov ecx, ebp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.00541040
sub esp, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0xc], eax
jmp 0x542110
lea edi, [esp + 0x80]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea ebx, [esp + 0x70]
mov dword [esp + 0x1c], edi
jmp 0x541e52
lea edi, [esp + 0x80]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0x70]
mov dword [esp + 0x1c], edi
jmp 0x54205e
mov edi, dword [esp + 0x14]
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edi], ecx
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0xc], eax
jmp 0x542110
cmp dword [esp + 0x18], esi
mov ebx, dword [esp + 0x18]
je 0x541f58
mov eax, dword [esi]
lea edx, [esi + 8]
cmp eax, edx
je 0x5421f5
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add esi, 0x18
cmp ebx, esi
jne 0x5421e4
jmp 0x541f58