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

Disassembly:
sub esp, 0xd8
push ebx
push ebp
mov ebp, dword [esp + 0xe4]
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
sub eax, edx
test eax, eax
jle 0x5da1a8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
sub ecx, edx
test ecx, ecx
jle 0x5da1a8
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x88]
push edx
call fcn.00405ab0
mov ecx, dword [esi + 0x4c]
mov eax, dword [esp + 0x88]
mov edx, dword [esi + 0x50]
mov ebx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x8c]
mov edi, 0xffffff01
sub ecx, edx
sub edi, edx
mov edx, dword [ebp]
neg ebx
cmp edx, eax
mov dword [esp + 0x14], edx
jge 0x5da1a8
mov edx, dword [ebp + 8]
cmp ebx, edx
mov dword [esp + 0x10], edx
jge 0x5da1a8
mov edx, dword [ebp + 4]
cmp edx, ecx
jge 0x5da1a8
mov ebp, dword [ebp + 0xc]
cmp edi, ebp
jge 0x5da1a8
cmp ebp, ecx
jge 0x5d9dd0
mov ecx, ebp
mov ebp, dword [esp + 0x10]
cmp ebp, eax
jge 0x5d9dda
mov eax, ebp
cmp edx, edi
jle 0x5d9de0
mov edi, edx
mov edx, dword [esp + 0x14]
cmp edx, ebx
jle 0x5d9dea
mov ebx, edx
push ecx
push eax
push edi
push ebx
lea ecx, [esp + 0x28]
call fcn.00406fc0
mov eax, dword [esi + 0x4c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
add edx, eax
add ecx, eax
mov eax, dword [esi + 0x50]
mov edi, dword [esp + 0x1c]
lea ebp, [edx + 0x1f]
add ebx, eax
sar ebp, 5
mov dword [esp + 0x70], ebp
lea ebp, [ebx + 0x1f]
sar ebp, 5
mov dword [esp + 0x74], ebp
mov ebp, dword [esi + 0x4c]
add edi, eax
mov eax, ecx
sub ecx, ebp
sub edx, ebp
sar eax, 5
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x68], eax
mov eax, edi
sub edi, ecx
sub ebx, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x20], edx
sar eax, 5
cmp eax, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
jge 0x5da1a8
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov ecx, eax
cmp eax, edx
mov dword [esp + 0x28], ecx
jge 0x5da193
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x24]
call fcn.00405c40
mov ecx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [ecx + 4]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp ebp, eax
mov dword [esp + 0x10], eax
je 0x5d9ffe
mov ecx, dword [esi + 0x24]
mov edi, dword [ebp]
push edi
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebx, eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0xc]
test al, al
je 0x5d9feb
mov edx, dword [esi + 0x10c]
mov ecx, dword [esi + 0x24]
push edi
call fcn.00407800
test al, al
jne 0x5d9feb
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x9c]
push edi
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
lea eax, [esi + 0x4c]
push eax
push ecx
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0xc0]
push edx
push eax
call fcn.00405bf0
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.00459100
mov ecx, dword [esi + 0x24]
push edi
call fcn.00405880
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
sub ecx, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x7c], ecx
mov eax, dword [ebx]
lea ecx, [esp + 0xc8]
push ecx
mov ecx, ebx
call dword [eax + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x78]
mov dword [esp + 0x48], edx
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], eax
call fcn.00406fe0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
cmp edx, eax
jge 0x5d9feb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jge 0x5d9feb
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jge 0x5d9feb
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
cmp edx, eax
jge 0x5d9feb
mov dword [esp + 0x14], edi
lea edi, [esi + 0x34]
mov ecx, edi
call fcn.004f6860
test eax, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa8]
push eax
push ecx
mov ecx, edi
sete bl
call fcn.005e0930
test bl, bl
je 0x5d9feb
mov al, byte [esi + 0x44]
test al, al
je 0x5d9feb
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5d9feb
mov ecx, esi
call fcn.005c6500
mov eax, dword [esp + 0x10]
add ebp, 8
cmp ebp, eax
jne 0x5d9eb0
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + 8]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
je 0x5da17e
mov ecx, dword [esi + 0x24]
mov ebx, dword [edi]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebp, eax
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 0xc]
test al, al
je 0x5da16b
mov edx, dword [esi + 0x10c]
mov ecx, dword [esi + 0x24]
push ebx
call fcn.00407800
test al, al
jne 0x5da16b
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x90]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push ecx
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0xc4]
push edx
push eax
call fcn.00405bf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esi + 0x4c]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edx
call fcn.004598d0
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + 0x24]
push ebx
mov dword [esp + 0x40], edi
call fcn.00405880
sub edi, eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xd8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x44]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x80]
mov dword [esp + 0x58], edx
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], eax
call fcn.00406fe0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
cmp edx, eax
jge 0x5da167
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jge 0x5da167
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jge 0x5da167
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
cmp edx, eax
jge 0x5da167
lea edi, [esi + 0x34]
mov dword [esp + 0x38], ebx
mov ecx, edi
call fcn.004f6860
test eax, eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0xb0]
push eax
push ecx
mov ecx, edi
sete bl
call fcn.005e0930
test bl, bl
je 0x5da167
mov al, byte [esi + 0x44]
test al, al
je 0x5da167
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5da167
mov ecx, esi
call fcn.005c6500
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 4
cmp edi, eax
mov dword [esp + 0x10], edi
jne 0x5da017
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x70]
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x5d9e83
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x74]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x5d9e6d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 4