Function at 0x542be0
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 0x543139
mov eax, dword [ebp + 8]
cmp ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
je 0x5430a1
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 0x542f2e
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
cmp ecx, edi
je 0x543101
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.0054aa80
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.0053e030
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 0x542e7b
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 0x542e62
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add ebp, 0x18
cmp ebx, ebp
jne 0x542e50
add esi, 4
cmp edi, esi
ja 0x542e43
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0xb0]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x20], ecx
je 0x543156
cmp esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x28]
je 0x542eab
mov eax, dword [esi]
lea edx, [esi + 8]
cmp eax, edx
je 0x542ea4
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add esi, 0x18
cmp ebx, esi
jne 0x542e93
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x18], ecx
je 0x542ed8
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 0x542ed1
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add ebx, 0x18
cmp esi, ebx
jne 0x542ec0
mov ebx, dword [esp + 0x8c]
mov esi, dword [ebp + 0x14]
cmp ebx, esi
jbe 0x542f01
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 0x542ef0
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 0x54303b
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x20]
cmp esi, edi
je 0x54311d
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.0054b2b0
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.0053ed60
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.00541fc0
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.0053ed60
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 0x542c25
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.00541fc0
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 0x543090
lea edi, [esp + 0x80]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea ebx, [esp + 0x70]
mov dword [esp + 0x1c], edi
jmp 0x542dd2
lea edi, [esp + 0x80]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0x70]
mov dword [esp + 0x1c], edi
jmp 0x542fde
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 0x543090
cmp dword [esp + 0x18], esi
mov ebx, dword [esp + 0x18]
je 0x542ed8
mov eax, dword [esi]
lea edx, [esi + 8]
cmp eax, edx
je 0x543175
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
add esi, 0x18
cmp ebx, esi
jne 0x543164
jmp 0x542ed8