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

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x53c126
lea eax, [esi + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
mov ecx, dword [eax]
push edi
mov dword [esp + 0x18], ecx
push ebp
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
call fcn.00530c80
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x48], eax
and al, 0xf3
mov dword [esi + 0x48], eax
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x64], eax
push edx
call dword [0x5c91a0]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], ebx
push eax
call dword [0x5c9168]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x58], eax
push ecx
call dword [0x5c9190]
mov edi, 1
mov ecx, ebp
push edi
mov dword [esp + 0x6c], eax
call fcn.0058a55c
mov eax, dword [ebp + 8]
lea edx, [esp + 0xe4]
push edx
push eax
call dword [0x5c90e4]
cmp ebx, 0xffffffff
je 0x53bd42
mov edx, dword [ebp]
push ebx
mov ecx, ebp
call dword [edx + 0x30]
mov ecx, dword [esi + 0x44]
xor eax, eax
cmp ecx, eax
jne 0x53bd77
lea ecx, [esp + 0x30]
push 0x520
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
push ecx
push 0xffffffffffffffff
push 0x619c74
mov ecx, ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
call dword [eax + 0x68]
mov dword [esi + 0x44], eax
mov di, word [esi + 0x3a]
cmp di, 2
jne 0x53bdad
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x44]
mov eax, dword [esp + 0x1c]
sub edx, ecx
sub edx, eax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul dword [0x5cb160]
fadd qword [0x5cb320]
call fcn.0056b454
add dword [esp + 0x1c], eax
cmp di, 1
jne 0x53bdc0
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x44]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x53c0ce
mov al, byte [esi + 0x54]
mov edx, dword [esi + 0x34]
mov ebx, dword [esi + 0x48]
mov ecx, dword [esi + 0x50]
mov byte [esp + 0x13], al
mov eax, dword [edx - 8]
or ebx, 0x20
inc eax
push eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x18], 0
call fcn.00586401
mov edi, dword [esi + 0x34]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x4c], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov edi, edx
mov dword [esp + 0x40], eax
push 9
push edi
call fcn.0056d380
xor edx, edx
add esp, 8
cmp eax, edx
mov dword [esp + 0x5c], eax
jne 0x53be4d
mov ecx, 1
mov dword [esp + 0x40], ecx
jmp 0x53be55
mov byte [eax], 0
mov ecx, 1
mov eax, dword [esp + 0x14]
cmp eax, 3
ja case.default.0x53be62
jmp dword [eax*4 + 0x53c130]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and ebx, 0xfffffffc
mov dword [esp + 0x74], edx
mov edx, dword [ebp]
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ecx
push ebx
lea eax, [esp + 0x70]
jmp 0x53c01b
mov eax, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
or ah, 4
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [ebp]
push ecx
push 0xffffffffffffffff
push edi
mov ecx, ebp
call dword [edx + 0x68]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
sub eax, ecx
and ebx, 0xfffffffc
inc eax
cdq
sub eax, edx
lea edx, [esp + 0xd8]
sar eax, 1
sub esi, eax
push esi
push edx
call dword [0x5c9628]
mov eax, dword [ebp]
lea ecx, [esp + 0xcc]
push ebx
push ecx
push 0xffffffffffffffff
push edi
mov ecx, ebp
call dword [eax + 0x68]
jmp case.default.0x53be62
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
and ebx, 0xfffffffe
or ebx, 2
mov dword [esp + 0x7c], edx
mov edx, dword [ebp]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], ecx
push ebx
lea eax, [esp + 0x80]
jmp 0x53c01b
movsx ecx, byte [esp + 0x13]
push ecx
push edi
call fcn.0056d380
and ebx, 0xfffffffe
add esp, 8
or ebx, 2
mov dword [esp + 0x14], eax
test eax, eax
je 0x53bfe8
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x8c]
push ebx
mov dword [esp + 0x90], edx
mov edx, dword [ebp]
push eax
mov dword [esp + 0xa0], ecx
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov dword [esp + 0xa4], esi
call dword [edx + 0x68]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
and ebx, 0xfffffffc
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xac]
push ebx
push ecx
mov dword [esp + 0xc0], edx
mov edx, dword [ebp]
push 0xffffffffffffffff
mov dword [esp + 0xb8], esi
push eax
jmp 0x53c01f
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x9c], edx
mov edx, dword [ebp]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], ecx
push ebx
lea eax, [esp + 0xa0]
push eax
push 0xffffffffffffffff
push edi
mov ecx, ebp
call dword [edx + 0x68]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x53c0b7
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xdc]
lea ecx, [esi - 1]
lea edi, [eax + 0x50]
push ecx
push edx
mov ecx, edi
call fcn.0053b800
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
cdq
idiv esi
mov dword [esp + 0x14], ecx
mov ecx, edi
mov dword [esp + 0x54], edx
push edx
lea edx, [esp + 0xc8]
push edx
call fcn.0053b800
mov ecx, dword [eax]
mov eax, dword [esp + 0x28]
cdq
idiv esi
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x54]
imul esi, dword [esp + 0x14]
add esi, ecx
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ecx, edi
add esi, edx
call fcn.0053b800
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], edx
lea edi, [eax + 1]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
jmp 0x53be2d
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0058642a
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x54]
add esp, 4
jmp 0x53c0e5
mov eax, dword [esi + 0x48]
mov edx, dword [ebp]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esi + 0x34]
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebp
call dword [edx + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x28]
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, ebp
call fcn.0058a9f2
mov edx, dword [esp + 0x68]
mov ecx, ebp
push edx
call fcn.0058a55c
cmp ebx, 0xffffffff
je 0x53c11c
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x30]
mov edx, dword [esp + 0x48]
pop edi
pop ebp
mov dword [esi + 0x48], edx
pop ebx
pop esi
add esp, 0x10c
ret 4