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

Disassembly:
sub esp, 0x174
mov edx, dword [esp + 0x178]
push ebx
push ebp
push esi
mov ebx, dword [edx + 8]
mov eax, dword [edx + 4]
mov esi, ecx
push edi
mov ecx, dword [edx]
mov dword [esp + 0x38], 0
mov edi, dword [esi + 0x4c]
mov ebp, dword [esi + 0x50]
add ecx, edi
add eax, ebp
lea ebx, [ebx + edi + 0x1f]
mov edi, dword [edx + 0xc]
sar eax, 5
lea edi, [edi + ebp + 0x1f]
mov ebp, eax
sar edi, 5
sar ecx, 5
sar ebx, 5
cmp eax, edi
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], edi
mov dword [esp + 0x3c], ebp
jge 0x5d6e7e
cmp ecx, ebx
mov dword [esp + 0x38], ecx
jge 0x5d6e71
mov ecx, ebp
shl ecx, 5
mov dword [esp + 0xb0], ecx
jmp 0x5d65af
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x188]
mov eax, dword [esp + 0x38]
mov edi, dword [esi + 0x50]
mov ebx, dword [esi + 0x4c]
sub ecx, edi
shl eax, 5
sub eax, ebx
mov ebx, dword [edx + 0xc]
lea edi, [ecx + 0x20]
cmp edi, ebx
lea ebp, [eax + 0x20]
mov dword [esp + 0x34], edi
jl 0x5d65d5
mov dword [esp + 0x34], ebx
mov edi, dword [edx + 8]
mov dword [esp + 0x2c], ebp
cmp ebp, edi
jl 0x5d65e4
mov dword [esp + 0x2c], edi
mov edi, dword [edx + 4]
mov dword [esp + 0x30], ecx
cmp ecx, edi
jg 0x5d65f3
mov dword [esp + 0x30], edi
mov edx, dword [edx]
mov dword [esp + 0x20], eax
cmp eax, edx
jg 0x5d6601
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x48]
push eax
push ecx
mov ecx, dword [esi + 0x24]
push edx
call fcn.00405c40
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
cmp edx, edi
mov dword [esp + 0x10], edx
je 0x5d6823
mov ebx, edx
mov ecx, dword [esi + 0x24]
mov edi, dword [ebx]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ebp, eax
mov eax, dword [ebx + 4]
push eax
mov ecx, ebp
mov edx, dword [ebp]
call dword [edx + 0x6c]
test al, al
je 0x5d681f
mov eax, dword [esi + 0x10c]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x60]
test al, al
je 0x5d6804
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x16c]
push edi
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x24]
mov edx, dword [eax]
lea eax, [esp + 0x150]
push edx
push eax
call fcn.00405bf0
mov ecx, dword [eax]
mov ebx, dword [esi + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x50]
sub ecx, ebx
sub eax, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x24]
push edi
mov dword [esp + 0x58], eax
call fcn.00405880
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub edx, ecx
sub eax, dword [esp + 0x50]
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x94]
sub ebx, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x90], eax
mov eax, dword [ebp]
sub edx, ecx
mov ecx, ebp
mov dword [esp + 0x94], edx
mov dword [esp + 0x24], edi
call dword [eax + 0xc]
test al, al
je 0x5d672f
mov edi, dword [esi + 0x3c]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x34]
call fcn.0061e660
cmp eax, edi
je 0x5d672f
mov eax, dword [esi + 0x30]
jmp 0x5d6731
xor eax, eax
mov edx, dword [ebp]
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0xe8]
push eax
mov ecx, ebp
call dword [edx + 0x38]
mov ecx, dword [esp + 0xec]
cmp ebx, ecx
jge 0x5d6804
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0x90]
cmp edx, eax
jge 0x5d6804
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0x8c]
cmp eax, edx
jge 0x5d6804
mov edi, dword [esp + 0xe8]
mov eax, dword [esp + 0x94]
cmp edi, eax
jge 0x5d6804
cmp eax, edx
jge 0x5d6799
mov edx, eax
mov eax, dword [esp + 0x90]
cmp eax, ecx
jge 0x5d67a6
mov ecx, eax
mov eax, dword [esp + 0x8c]
cmp eax, edi
jg 0x5d67b3
mov eax, edi
mov edi, dword [esp + 0xe4]
cmp ebx, edi
jg 0x5d67c0
mov ebx, edi
mov dword [esp + 0xf8], eax
lea eax, [esp + 0x50]
push 0xf
push eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x104], ecx
lea ecx, [esp + 0xfc]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0x114], edx
mov edx, dword [ebp]
mov eax, dword [ecx + 4]
mov ecx, ebp
push eax
mov dword [esp + 0x10c], ebx
call dword [edx + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
add ebx, 8
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], ebx
cmp ebx, dword [edx + 0xc]
jne 0x5d6632
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
je 0x5d6a15
mov ecx, dword [esi + 0x24]
mov edx, dword [ebx]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x10c]
mov edi, eax
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x60]
test al, al
je 0x5d6a02
mov eax, dword [ebx]
mov ecx, dword [esi + 0x24]
push eax
lea eax, [esp + 0x164]
mov edx, dword [ecx]
push eax
call dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x24]
mov edx, dword [eax]
lea eax, [esp + 0x148]
push edx
push eax
call fcn.00405bf0
mov ecx, dword [eax]
mov ebp, dword [esi + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x50]
sub ecx, ebp
sub eax, edx
mov dword [esp + 0x98], ecx
mov ecx, dword [ebx]
push ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0xa0], eax
call fcn.00405880
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x58], ebp
sub edx, eax
sub ebp, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x9c], ecx
sub eax, ecx
sub edx, ecx
mov ecx, dword [ebx]
mov dword [esp + 0x64], edx
mov edx, dword [edi]
mov dword [esp + 0x24], ecx
mov ecx, edi
mov dword [esp + 0x5c], eax
call dword [edx + 0xc]
test al, al
je 0x5d692c
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x34]
mov dword [esp + 0x1c], eax
call fcn.0061e660
cmp eax, dword [esp + 0x18]
je 0x5d692c
mov edx, dword [esi + 0x30]
mov dword [esp + 0x1c], edx
jmp 0x5d6934
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
lea edx, [esp + 0xb4]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x40]
mov edx, dword [esp + 0xbc]
cmp ebp, edx
jge 0x5d6a02
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x60]
cmp eax, ecx
jge 0x5d6a02
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0x5c]
cmp eax, ecx
jge 0x5d6a02
mov eax, dword [esp + 0xb8]
cmp eax, dword [esp + 0x64]
jge 0x5d6a02
mov eax, dword [esp + 0x64]
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x5d699a
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
cmp ecx, edx
jl 0x5d69a4
mov ecx, edx
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0xb8]
cmp eax, edx
jg 0x5d69b5
mov eax, edx
mov edx, dword [esp + 0xb4]
cmp ebp, edx
jg 0x5d69c2
mov ebp, edx
mov dword [esp + 0x108], eax
mov edx, dword [edi]
lea eax, [esp + 0x98]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x114], ecx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10c]
mov dword [esp + 0x10c], ebp
push ecx
push eax
mov ecx, edi
call dword [edx + 0x1c]
mov eax, dword [esp + 0x28]
add ebx, 4
mov ecx, dword [eax + 8]
cmp ebx, dword [ecx + 0xc]
jne 0x5d6834
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 0xc]
je 0x5d6bf2
mov ecx, dword [esi + 0x24]
mov edi, dword [eax]
push edi
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x10c]
mov ebp, eax
push ecx
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 0x60]
test al, al
je 0x5d6bd7
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x178]
push edi
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x24]
mov edx, dword [eax]
lea eax, [esp + 0x138]
push edx
push eax
call fcn.00405bf0
mov ecx, dword [eax]
mov ebx, dword [esi + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x50]
sub ecx, ebx
sub eax, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x24]
push edi
mov dword [esp + 0x50], eax
call fcn.00405880
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub edx, ecx
sub eax, dword [esp + 0x48]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x84]
sub ebx, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x80], eax
mov eax, dword [ebp]
sub edx, ecx
mov ecx, ebp
mov dword [esp + 0x84], edx
mov dword [esp + 0x24], edi
call dword [eax + 0xc]
test al, al
je 0x5d6b08
mov edi, dword [esi + 0x3c]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x34]
call fcn.0061e660
cmp eax, edi
je 0x5d6b08
mov eax, dword [esi + 0x30]
jmp 0x5d6b0a
xor eax, eax
mov edx, dword [ebp]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0xd8]
push eax
mov ecx, ebp
call dword [edx + 0x38]
mov ecx, dword [esp + 0xdc]
cmp ebx, ecx
jge 0x5d6bd7
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0x80]
cmp edx, eax
jge 0x5d6bd7
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x7c]
cmp eax, edx
jge 0x5d6bd7
mov edi, dword [esp + 0xd8]
mov eax, dword [esp + 0x84]
cmp edi, eax
jge 0x5d6bd7
cmp eax, edx
jge 0x5d6b6f
mov edx, eax
mov eax, dword [esp + 0x80]
cmp eax, ecx
jge 0x5d6b7c
mov ecx, eax
mov eax, dword [esp + 0x7c]
cmp eax, edi
jg 0x5d6b86
mov eax, edi
mov edi, dword [esp + 0xd4]
cmp ebx, edi
jg 0x5d6b93
mov ebx, edi
mov dword [esp + 0x128], eax
lea eax, [esp + 0x48]
push 0xf
push eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x134], ecx
lea ecx, [esp + 0x12c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov dword [esp + 0x144], edx
mov edx, dword [ebp]
mov eax, dword [ecx + 4]
mov ecx, ebp
push eax
mov dword [esp + 0x13c], ebx
call dword [edx + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add eax, 8
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], eax
cmp eax, dword [edx + 0xc]
jne 0x5d6a25
mov eax, dword [esp + 0x28]
mov byte [esp + 0x17], 0
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [esp + 0x24], ebx
je 0x5d6e3e
mov ecx, dword [esi + 0x24]
mov edi, dword [ebx - 8]
push edi
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebx, dword [ebx - 4]
mov ebp, eax
push ebx
mov ecx, ebp
mov eax, dword [ebp]
mov dword [esp + 0x14], ebx
call dword [eax + 0x6c]
test al, al
jne 0x5d6e3e
mov eax, dword [esi + 0x10c]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x60]
test al, al
je 0x5d6e23
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x154]
push edi
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x24]
mov edx, dword [eax]
lea eax, [esp + 0x140]
push edx
push eax
call fcn.00405bf0
mov ecx, dword [eax]
mov ebx, dword [esi + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x50]
sub ecx, ebx
sub eax, edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x24]
push edi
mov dword [esp + 0x48], eax
call fcn.00405880
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub edx, ecx
sub eax, dword [esp + 0x40]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x74]
sub ebx, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x70], eax
mov eax, dword [ebp]
sub edx, ecx
mov ecx, ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x18], edi
call dword [eax + 0xc]
test al, al
je 0x5d6d15
mov edi, dword [esi + 0x3c]
lea ecx, [esi + 0x34]
lea edx, [esp + 0x18]
push edx
call fcn.0040b120
cmp eax, edi
je 0x5d6d07
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
cmp ecx, edx
jge 0x5d6d07
mov eax, edi
cmp eax, dword [esi + 0x3c]
je 0x5d6d15
mov edx, dword [esi + 0x30]
mov dword [esp + 0x1c], edx
jmp 0x5d6d1d
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp]
lea edx, [esp + 0xa0]
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x38]
cmp ebx, dword [esp + 0xa8]
jge 0x5d6e23
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xa0]
cmp ecx, eax
jge 0x5d6e23
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0xac]
cmp ecx, eax
jge 0x5d6e23
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0xa4]
cmp eax, edx
jge 0x5d6e23
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 0x78]
test al, al
je 0x5d6e1e
mov al, byte [esp + 0x17]
test al, al
je 0x5d6e23
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x74]
cmp ecx, eax
mov edi, ecx
jl 0x5d6dac
mov edi, eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x70]
cmp ecx, eax
jl 0x5d6dbd
mov ecx, eax
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x6c]
cmp edx, eax
jle 0x5d6dce
mov eax, edx
mov edx, dword [esp + 0xa0]
cmp ebx, edx
jg 0x5d6ddb
mov ebx, edx
mov dword [esp + 0x118], eax
lea eax, [esp + 0x40]
mov edx, dword [ebp]
push 8
push eax
mov eax, dword [esi + 0x64]
mov dword [esp + 0x124], ecx
lea ecx, [esp + 0x11c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x138], edi
call dword [edx + 0x24]
jmp 0x5d6e23
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 4]
lea ebx, [edx - 8]
mov dword [esp + 0x24], ebx
cmp ebx, dword [ecx + 8]
jne 0x5d6c10
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xcc]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x5d65a1
mov edi, dword [esp + 0xd0]
mov edx, dword [esp + 0x188]
mov ebp, dword [esp + 0x3c]
mov ebx, ecx
mov ecx, dword [esp + 0xc4]
inc ebp
cmp ebp, edi
mov dword [esp + 0x3c], ebp
jl 0x5d6587
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret 4