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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe04
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x38], 0x6e7810
mov dword [ebp - 0x34], esp
mov eax, 0x56498f
mov dword [ebp - 0x3c], eax
mov esi, edx
mov word [ebp - 0x30], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x40]
mov dword fs:[0], eax
mov word [ebp - 0x30], 8
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x44], eax
test edi, edi
je 0x5c89b5
push edi
mov edx, dword [edi]
call dword [edx]
pop ecx
cmp dword [ebp - 0x44], 0
je 0x5c89c4
mov ecx, dword [ebp - 0x44]
push ecx
mov eax, dword [ecx]
call dword [eax]
pop ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 8], edx
lea edx, [ebp - 0x48]
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 0x14
mov dword [ebp - 0x48], ecx
mov eax, dword [ebx + 0x14]
push eax
push edx
push 1
push 0
push 0
push 0
push 0
mov ecx, dword [ebx + 0xc]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
add esp, 0x20
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405500
mov word [ebp - 0x30], 0
mov eax, ebx
call fcn.005d21d4
xor edx, edx
mov dword [ebp - 0x4c], edx
jmp 0x5c8ae7
xor eax, eax
call fcn.00420660
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
shl eax, 2
add eax, dword [esi + 0x1c]
mov eax, dword [eax]
mov word [ebp - 0x30], 0x20
mov edi, eax
mov dword [ebp - 0x54], eax
test edi, edi
je 0x5c8a52
push edi
mov eax, dword [edi]
call dword [eax]
pop ecx
cmp dword [ebp - 0x54], 0
je 0x5c8a61
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [edx]
call dword [ecx]
pop ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 0x2c
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x50]
push ecx
push eax
push 1
push 0
push 0
push 0
push 0
mov edx, dword [ebx + 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
add esp, 0x20
lea eax, [ebx + 0x18]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0x18]
je 0x5c8ac0
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
mov dword [edx], ecx
add dword [eax + 8], 4
jmp 0x5c8ace
lea ecx, [ebp - 0x50]
push ecx
push edx
push eax
call fcn.0041b9cc
add esp, 0xc
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00405500
mov word [ebp - 0x30], 0
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [esi + 0x38]
jb 0x5c8a28
mov edx, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebx + 0x38], edx
lea edx, [ebx + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [ebx + 0x3c], ecx
push eax
push edx
call fcn.005c92b4
lea eax, [esi + 0x6c]
add esp, 8
mov dword [ebp - 0x64], eax
lea edi, [ebx + 0x6c]
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0
je 0x5c8b27
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx]
inc dword [eax]
cmp dword [edi], 0
je 0x5c8b33
mov eax, dword [edi]
call fcn.00408920
mov edx, dword [ebp - 0x64]
lea eax, [esi + 0x70]
mov ecx, dword [edx]
mov dword [edi], ecx
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
lea edi, [ebx + 0x70]
cmp dword [edx], 0
je 0x5c8b52
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx]
inc dword [eax]
cmp dword [edi], 0
je 0x5c8b5e
mov eax, dword [edi]
call fcn.00408920
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx]
mov dword [edi], ecx
mov eax, dword [ebx + 0x60]
cmp eax, dword [esi + 0x60]
je 0x5c8baa
cmp dword [ebx + 0x60], 0
je 0x5c8b8a
mov eax, dword [ebx + 0x60]
call fcn.005c6898
xor edx, edx
mov dword [ebx + 0x60], edx
xor ecx, ecx
mov dword [ebx + 0x64], ecx
xor eax, eax
mov dword [ebx + 0x7c], eax
mov edx, dword [esi + 0x60]
mov dword [ebx + 0x60], edx
mov ecx, dword [esi + 0x64]
mov dword [ebx + 0x64], ecx
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x68], eax
cmp dword [ebx + 0x60], 0
je 0x5c8baa
mov eax, dword [ebx + 0x60]
call fcn.005c6890
mov edx, dword [esi + 0x74]
lea edi, [ebx + 0x80]
mov dword [ebx + 0x74], edx
mov ecx, dword [esi + 0x78]
mov dword [ebx + 0x78], ecx
mov eax, dword [esi + 0x7c]
mov dword [ebx + 0x7c], eax
lea eax, [esi + 0x80]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
cmp dword [edx], 0
je 0x5c8bda
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx]
inc dword [eax]
cmp dword [edi], 0
je 0x5c8be6
mov eax, dword [edi]
call fcn.00408920
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx]
mov dword [edi], ecx
lea edi, [ebx + 0x88]
mov al, byte [esi + 0x84]
mov byte [ebx + 0x84], al
lea eax, [esi + 0x88]
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
cmp dword [edx], 0
je 0x5c8c17
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx]
inc dword [eax]
cmp dword [edi], 0
je 0x5c8c23
mov eax, dword [edi]
call fcn.00408920
mov edx, dword [ebp - 0x70]
lea eax, [esi + 0x8c]
mov ecx, dword [edx]
mov dword [edi], ecx
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
lea edi, [ebx + 0x8c]
cmp dword [edx], 0
je 0x5c8c48
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx]
inc dword [eax]
cmp dword [edi], 0
je 0x5c8c54
mov eax, dword [edi]
call fcn.00408920
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx]
mov dword [edi], ecx
lea edi, [ebx + 0x98]
mov eax, dword [esi + 0x90]
mov dword [ebx + 0x90], eax
mov dl, byte [esi + 0x94]
mov byte [ebx + 0x94], dl
mov cl, byte [esi + 0x96]
mov byte [ebx + 0x96], cl
mov al, byte [esi + 0x97]
mov byte [ebx + 0x97], al
lea eax, [esi + 0x98]
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
cmp dword [edx], 0
je 0x5c8ca9
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx]
inc dword [eax]
cmp dword [edi], 0
je 0x5c8cb5
mov eax, dword [edi]
call fcn.00408920
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x9c]
mov ecx, dword [edx]
mov dword [edi], ecx
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
lea edi, [ebx + 0x9c]
cmp dword [edx], 0
je 0x5c8cda
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx]
inc dword [eax]
cmp dword [edi], 0
je 0x5c8ce6
mov eax, dword [edi]
call fcn.00408920
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx]
mov dword [edi], ecx
lea ecx, [esi + 0xb4]
mov eax, dword [esi + 0xac]
mov dword [ebx + 0xac], eax
lea eax, [ebx + 0xb4]
mov edx, dword [esi + 0xb0]
mov dword [ebx + 0xb0], edx
push ecx
push eax
call fcn.00463588
add esp, 8
add esi, 0xd4
add ebx, 0xd4
cmp ebx, esi
je 0x5c92a4
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x80], eax
mov edx, dword [esi + 8]
mov dword [ebp - 0x84], edx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x104], ecx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x100], eax
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x88], edx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x110], edx
mov ecx, dword [ebp - 0x114]
sub ecx, dword [ebp - 0x104]
test ecx, ecx
jns 0x5c8d90
add ecx, 3
sar ecx, 2
mov eax, dword [ebx + 0xc]
shl ecx, 5
add ecx, dword [ebp - 0x110]
sub ecx, dword [ebp - 0x100]
mov dword [ebp - 0x90], eax
mov edx, dword [ebx + 8]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x120], edx
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x98], eax
xor eax, eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x134]
sub edx, dword [ebp - 0x124]
test edx, edx
jns 0x5c8dfc
add edx, 3
sar edx, 2
shl edx, 5
add edx, dword [ebp - 0x130]
sub edx, dword [ebp - 0x120]
cmp ecx, edx
jbe 0x5c906e
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0055ffa4
pop ecx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0xa4], edx
mov ecx, dword [esi + 8]
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x140], edx
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0xac], ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x154], edx
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x154]
sub eax, dword [ebp - 0x144]
test eax, eax
jns 0x5c8e93
add eax, 3
sar eax, 2
shl eax, 5
add eax, dword [ebp - 0x150]
sub eax, dword [ebp - 0x140]
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
add edx, 0x20
dec edx
shr edx, 5
mov dword [ebp - 0xb8], edx
mov ecx, dword [ebp - 0xb8]
shl ecx, 2
push ecx
call fcn.0055ffd8
pop ecx
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x5c8f1d
lea eax, [ebp - 0x40]
mov edx, 0x6a9368
push eax
push 0
push 0
push 0
push 1
push 0x40815c
push 0
mov ecx, 0x6a937c
mov word [ebp - 0x30], 0x38
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x1c]
inc dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
inc dword [ebp - 0x24]
push eax
push 0x408104
call fcn.00573d9d
add esp, 0x24
mov edx, dword [ebp - 0xbc]
lea eax, [ebx + 0x20]
mov dword [ebp - 0xb4], edx
mov ecx, dword [ebp - 0xa0]
add ecx, 0x20
dec ecx
shr ecx, 5
shl ecx, 2
add ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0xc4]
mov edx, dword [eax + 8]
mov dword [ebp - 0x164], edx
xor edx, edx
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xc8], ecx
lea ecx, [ebp - 0x17c]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], edx
push esi
push edi
mov esi, ecx
mov edi, ebx
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp - 0xcc], ebx
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
mov dword [ebp - 0x18c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x188], edx
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0xcc]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x180], ecx
mov edi, dword [ebp - 0xa0]
add edi, dword [ebp - 0x180]
mov eax, edi
test eax, eax
jns 0x5c8ff1
add eax, 0x1f
sar eax, 5
shl eax, 2
add dword [ebp - 0x184], eax
mov edx, edi
and edx, 0x8000001f
jns 0x5c900c
dec edx
or edx, 0xffffffe0
inc edx
mov edi, edx
test edi, edi
jge 0x5c9024
lea ecx, [edi + 0x20]
mov dword [ebp - 0x180], ecx
sub dword [ebp - 0x184], 4
jmp 0x5c902a
mov dword [ebp - 0x180], edi
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x198], eax
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x194], edx
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x190], ecx
push esi
push edi
lea esi, [ebp - 0x19c]
lea edi, [ebx + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [ebp - 0xe0], ebx
add esp, 0xfffffff0
mov eax, dword [ebp - 0xe0]
mov edx, dword [eax]
mov dword [esp], edx
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx + 8]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xe0]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0xc], ecx
add esp, 0xfffffff0
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0xd8], eax
mov edx, dword [esi + 0x18]
mov dword [ebp - 0xdc], edx
mov ecx, dword [ebp - 0xdc]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0xd8]
mov dword [esp + 0xc], eax
add esp, 0xfffffff0
mov edx, dword [esi + 0xc]
mov dword [ebp - 0xd0], edx
mov ecx, dword [esi + 8]
mov dword [ebp - 0xd4], ecx
lea ecx, [ebp - 0x1ac]
mov eax, dword [ebp - 0xd4]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xd0]
mov dword [esp + 0xc], edx
push ebx
push ecx
call fcn.005ca450
add esp, 0x38
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xe8], eax
mov edx, dword [esi + 8]
mov dword [ebp - 0xec], edx
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x1b4], ecx
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x1b0], eax
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0xf0], edx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0x1c0], edx
mov ecx, dword [ebp - 0x1c4]
sub ecx, dword [ebp - 0x1b4]
test ecx, ecx
jns 0x5c916c
add ecx, 3
sar ecx, 2
shl ecx, 5
add ecx, dword [ebp - 0x1c0]
sub ecx, dword [ebp - 0x1b0]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xf8], ebx
mov eax, dword [ebp - 0xf8]
mov edx, dword [eax]
mov dword [ebp - 0x1dc], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x1d8], edx
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1d4], eax
mov edx, dword [ebp - 0xf8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1d0], ecx
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1e8], eax
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1e4], edx
mov ecx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1e0], ecx
mov eax, dword [ebp - 0xe4]
add eax, dword [ebp - 0x1e0]
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xfc]
test edx, edx
jns 0x5c920e
add edx, 0x1f
sar edx, 5
shl edx, 2
add dword [ebp - 0x1e4], edx
mov ecx, dword [ebp - 0xfc]
and ecx, 0x8000001f
jns 0x5c922d
dec ecx
or ecx, 0xffffffe0
inc ecx
mov dword [ebp - 0xfc], ecx
cmp dword [ebp - 0xfc], 0
jge 0x5c9254
mov eax, dword [ebp - 0xfc]
add eax, 0x20
mov dword [ebp - 0x1e0], eax
sub dword [ebp - 0x1e4], 4
jmp 0x5c9260
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x1e0], edx
mov ecx, dword [ebp - 0x1ec]
mov dword [ebp - 0x1fc], ecx
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1f8], ecx
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1f4], eax
mov edx, dword [ebp - 0x1e0]
mov dword [ebp - 0x1f0], edx
push esi
push edi
lea esi, [ebp - 0x1fc]
lea edi, [ebx + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x40]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret