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

Disassembly:
sub esp, 0xc8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xdc]
xor edx, edx
xor ebx, ebx
cmp eax, ebx
setne dl
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
add edx, 2
mov dword [esp + 0x2c], edx
lea esp, [esp]
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.004c6940
add esp, 0x10
cmp eax, ebx
jne 0x53a28f
mov edx, dword [esi + 0x24]
push edx
lea ecx, [esp + 0x9c]
call fcn.00536720
mov edi, dword [esi + 0x24]
push edi
lea ecx, [esp + 0xbc]
call fcn.00536720
mov ebp, dword [edi + 8]
mov edi, dword [edi + 0xc]
lea ecx, [esp + 0xb8]
call fcn.00536710
cmp ebp, ebx
mov eax, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
jne 0x539efb
cmp edi, ebx
je 0x53a27e
jmp 0x539efb
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x30], eax
call fcn.005386d0
mov esi, dword [eax + 8]
cmp esi, ebx
mov edi, dword [eax + 0xc]
jne 0x539f2b
cmp edi, ebx
je 0x53a136
push edi
push esi
call fcn.004c1530
push edi
push esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call fcn.004c1530
push edi
push esi
mov ebp, eax
call fcn.004c1550
push ebp
call dword [0x100820b8]
cmp dword [esp + 0x4c], ebx
jne 0x539f5d
cmp dword [esp + 0x50], ebx
je 0x539fcf
mov esi, dword [esp + 0x44]
push esi
call dword [0x100820a4]
test eax, eax
jne 0x539fcf
cmp dword [esi + 0x30], ebx
jne 0x539f76
cmp dword [esi + 0x34], ebx
je 0x539f97
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov ecx, dword [esi + 0x34]
jne 0x539f84
cmp ecx, ebx
je 0x539f91
push ecx
push eax
call fcn.004c1510
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
cmp dword [esi + 0x40], ebx
jne 0x539fa1
cmp dword [esi + 0x44], ebx
je 0x539fc2
mov eax, dword [esi + 0x40]
cmp eax, ebx
mov ecx, dword [esi + 0x44]
jne 0x539faf
cmp ecx, ebx
je 0x539fbc
push ecx
push eax
call fcn.004c1510
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.004c1510
mov edi, dword [esp + 0x10]
lea esi, [ebp + 0x18]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
cmp dword [esi], ebx
je 0x53a145
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x24]
push edx
push eax
call fcn.005382e0
mov ecx, dword [esp + 0xdc]
cmp ecx, dword [esi]
je 0x53a2af
lea edx, [esp + 0x40]
push edx
push esi
lea ecx, [edi + 0x60]
call fcn.00538c70
test eax, eax
je 0x53a1ea
cmp dword [0x1018ed58], ebx
mov edi, dword [esp + 0x40]
je 0x53a0a2
mov eax, dword [esi]
push 0x100927bc
push eax
push 0x100927a4
push edi
lea ecx, [esp + 0x70]
call fcn.004c5220
push eax
push 0x10092798
lea ecx, [esp + 0xa0]
call fcn.004d90d0
mov ecx, eax
call fcn.004d8000
mov ecx, eax
call fcn.004d9190
mov ecx, eax
call fcn.004d8000
mov ecx, eax
call fcn.004d8070
mov ecx, eax
call fcn.004d8000
lea ecx, [esp + 0x8c]
call fcn.004d7f10
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x53a0a2
push eax
call fcn.004c3420
add esp, 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
push edi
call dword [0x100821b8]
cmp dword [0x1018ed58], ebx
je 0x53a1ea
mov ecx, dword [esi]
push 0x1009278c
push ecx
push 0x100927a4
push edi
lea ecx, [esp + 0x80]
call fcn.004c5220
push eax
push 0x10092798
lea ecx, [esp + 0x94]
call fcn.004d90d0
mov ecx, eax
call fcn.004d8000
mov ecx, eax
call fcn.004d9190
mov ecx, eax
call fcn.004d8000
mov ecx, eax
call fcn.004d8070
mov ecx, eax
call fcn.004d8000
lea ecx, [esp + 0x80]
call fcn.004d7f10
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x53a1ea
push eax
call fcn.004c3420
add esp, 4
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
jmp 0x53a1ea
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
xor ebp, ebp
jmp 0x539f51
mov edx, dword [edi + 0x5c]
test edx, edx
jne 0x53a1e0
mov eax, dword [edi + 0x58]
push eax
call dword [0x100821b8]
push 0x18
call fcn.004d7f00
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x53a1dc
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x10092674
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [0x10082198]
mov dword [esi + 0x14], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
lea edi, [esi + 0x10]
push edi
push ebx
push esi
push 0x1007add0
push ebx
push ebx
call dword [0x10082074]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
mov dword [esp + 0x24], esi
call ecx
mov ecx, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
push edi
add ecx, 0xa8
call fcn.0050da90
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
jmp 0x53a1ea
xor esi, esi
jmp 0x53a194
mov ecx, dword [edi + 0x58]
push ecx
call dword [0x100821b8]
cmp dword [esp + 0x38], ebx
jne 0x53a1f6
cmp dword [esp + 0x3c], ebx
je 0x53a264
push ebp
call dword [0x100820a4]
test eax, eax
jne 0x53a264
cmp dword [ebp + 0x30], ebx
jne 0x53a20b
cmp dword [ebp + 0x34], ebx
je 0x53a22c
mov eax, dword [ebp + 0x30]
cmp eax, ebx
mov ecx, dword [ebp + 0x34]
jne 0x53a219
cmp ecx, ebx
je 0x53a226
push ecx
push eax
call fcn.004c1510
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
cmp dword [ebp + 0x40], ebx
jne 0x53a236
cmp dword [ebp + 0x44], ebx
je 0x53a257
mov eax, dword [ebp + 0x40]
cmp eax, ebx
mov ecx, dword [ebp + 0x44]
jne 0x53a244
cmp ecx, ebx
je 0x53a251
push ecx
push eax
call fcn.004c1510
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.004c1510
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x539ef7
cmp dword [esp + 0x1c], ebx
jne 0x539ef7
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x98]
call fcn.00536710
jmp 0x539e90
cmp eax, 1
je 0x53a2f8
cmp eax, 2
jne 0x539e90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc8
ret 8
cmp dword [esp + 0x38], ebx
jne 0x53a2bb
cmp dword [esp + 0x3c], ebx
je 0x53a2da
push ebp
call dword [0x100820a4]
test eax, eax
jne 0x53a2da
mov ecx, ebp
call fcn.00537d40
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004c1510
lea ecx, [esp + 0x98]
call fcn.00536710
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc8
ret 8
lea edi, [esi + 0xa8]
mov ecx, edi
call fcn.00539470
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x53a355
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.005285e0
mov esi, dword [eax]
cmp esi, ebx
je 0x53a32a
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
cmp dword [esi + 0xc], ebx
je 0x53a347
mov eax, dword [esi + 0x14]
push eax
call dword [0x100821b8]
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push ecx
call fcn.004c68d0
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
cmp dword [esp + 0x14], ebx
jne 0x53a310
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc8
ret 8