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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esp + 0x10], esi
je 0x5d1b82
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x20], ebx
mov edx, dword [0x86c54c]
mov eax, dword [0x86c548]
mov edi, dword [esp + 0xb4]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esi + 4], edi
call fcn.005d0c50
imul edi, edi, 0x8c
add edi, 0x7ff7d0
mov edx, dword [edi]
xor ecx, ecx
xor ebp, ebp
cmp edx, 8
je 0x5d1c3e
mov esi, edx
mov edx, edi
lea ebx, [esp + 0x32]
xor eax, eax
sub edx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
mov edx, edi
jmp 0x5d1be0
mov edx, dword [edx + 4]
mov bl, byte [esi*4 + 0x800494]
mov byte [esp + eax + 0x34], bl
mov bl, byte [edx*4 + 0x8004b4]
mov dl, byte [edx + 0x8004d8]
mov byte [esp + eax + 0x37], dl
mov edx, dword [esi*4 + 0x8004e4]
mov word [esp + eax + 0x32], bp
add ebp, edx
mov edx, dword [esp + 0x14]
inc ecx
mov word [esp + eax + 0x30], 0
mov byte [esp + eax + 0x35], 0
mov byte [esp + eax + 0x36], bl
lea eax, [ecx*8]
add edx, eax
mov esi, dword [esp + edx + 0x32]
cmp esi, 8
lea edx, [esp + edx + 0x32]
jne 0x5d1be0
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [0x870974]
lea edx, [esi + 0x24]
push edx
lea edx, [esp + 0x34]
push edx
mov word [esp + ecx*8 + 0x38], 0xff
mov word [esp + ecx*8 + 0x3a], bx
mov byte [esp + ecx*8 + 0x3c], 0x11
mov byte [esp + ecx*8 + 0x3d], bl
mov byte [esp + ecx*8 + 0x3e], bl
mov byte [esp + ecx*8 + 0x3f], bl
mov ecx, dword [eax]
push eax
call dword [ecx + 0x158]
mov dword [esi + 8], ebp
mov ecx, dword [0x870914]
mov edx, dword [edi + 0x84]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x870974]
lea ebp, [esi + 0x20]
push ebp
push ecx
push ebx
push ebx
push ebx
push edx
push ebx
push eax
call fcn.00640982
mov ecx, esi
call fcn.005d1900
mov eax, dword [0x800bf4]
xor edi, edi
cmp eax, ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0x10], edi
jle 0x5d1edb
mov eax, dword [ebp]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x30]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x24], ecx
je 0x5d1ea6
mov eax, dword [ebp]
mov edx, dword [eax]
push 0x7a4584
push ecx
push eax
call dword [edx + 0x4c]
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x5d1cfa
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea edi, [esp + 0x18]
push edi
push eax
push ecx
call dword [edx + 0x6c]
mov edi, dword [esp + 0x10]
cmp dword [0x870908], ebx
je 0x5d1d0d
cmp dword [esp + 0x18], 1
je 0x5d1ea6
mov ecx, dword [esp + 0xb4]
cmp ecx, 2
je 0x5d1d1e
cmp ecx, 3
jne 0x5d1d50
mov eax, dword [esp + 0x1c]
cmp eax, 0x1039
jne 0x5d1d34
cmp edi, 3
jl 0x5d1ea6
jmp 0x5d1d54
cmp eax, 0x8086
jne 0x5d1d54
cmp dword [esp + 0x20], 0x2572
jne 0x5d1d54
cmp edi, 3
jl 0x5d1ea6
jmp 0x5d1d54
mov eax, dword [esp + 0x1c]
cmp ecx, 5
jne 0x5d1d60
cmp eax, 0x102b
jmp 0x5d1d6a
cmp ecx, 0xf
jne 0x5d1d74
cmp eax, 0x1039
jne 0x5d1d74
cmp edi, ebx
je 0x5d1ea6
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x74], ebx
je 0x5d1db9
mov dword [0x86ead8], ebx
mov dword [0x86eadc], ebx
mov dword [0x86eae0], ebx
mov dword [0x86eae4], 5
mov dword [0x86eae8], 6
mov edx, dword [esi + 0x1c]
mov edx, dword [edx + 0x74]
mov eax, dword [ebp]
mov ecx, dword [eax]
push 5
push 0x86ead8
push edx
push eax
call dword [ecx + 0x70]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x9c]
cmp ecx, ebx
je 0x5d1e13
mov eax, dword [0x870d18]
cmp eax, ebx
jne 0x5d1dd9
mov dword [esp + 0x14], 1
jmp 0x5d1e04
cmp eax, 1
jne 0x5d1de8
mov dword [esp + 0x14], 2
jmp 0x5d1e04
cmp eax, 2
jne 0x5d1e04
mov edi, dword [0x86c548]
xor edx, edx
cmp edi, 0x102b
setne dl
add edx, eax
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [eax]
push edi
push ecx
push eax
call dword [edx + 0x68]
mov eax, dword [esi + 0x1c]
mov edi, dword [eax + 0xc4]
cmp edi, ebx
je 0x5d1e3d
mov edx, dword [ebp]
mov eax, dword [edx]
mov ecx, 0x8718b0
mov dword [esp + 0x28], eax
call fcn.005be240
push eax
mov eax, dword [esp + 0x2c]
push edi
push edx
call dword [eax + 0x68]
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx + 0x484]
cmp ecx, ebx
je 0x5d1e56
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
push ecx
push eax
call dword [edx + 0x68]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0xec]
cmp ecx, ebx
je 0x5d1e74
mov edi, dword [0x86e634]
mov eax, dword [ebp]
mov edx, dword [eax]
push edi
push ecx
push eax
call dword [edx + 0x68]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x31c]
cmp ecx, ebx
je 0x5d1e8d
mov eax, dword [ebp]
mov edx, dword [eax]
push 0xf
push ecx
push eax
call dword [edx + 0x68]
mov eax, dword [ebp]
mov edi, dword [esp + 0x24]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xf8]
test eax, eax
je 0x5d1eba
mov edi, dword [esp + 0x10]
mov eax, dword [0x800bf4]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jl 0x5d1cb8
jmp 0x5d1edb
mov edx, dword [esp + 0x10]
mov eax, dword [ebp]
push edi
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf0]
cmp dword [esp + 0x18], ebx
setne dl
mov byte [esi + 0x18], dl
xor edi, edi
lea ecx, [ecx]
mov edx, dword [esi + 0x10]
mov eax, dword [ebp]
mov ecx, dword [eax]
push edi
push edx
push eax
call dword [ecx + 0x38]
test eax, eax
je 0x5d1ef8
inc edi
cmp edi, 0x10
jl 0x5d1ee0
cmp dword [esi + 4], 9
mov dword [esi + 0x14], edi
jne 0x5d1f1a
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x434]
mov ebp, dword [ebp]
mov eax, dword [ebp]
push 0x3c1374bc
push edx
push ebp
call dword [eax + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4