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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x18]
push ebx
mov ebx, dword [eax + 8]
push esi
push edi
mov edi, dword [ebx + 0x18]
mov esi, dword [edi + 0x74]
mov dword [esp + 0x20], edx
lea edx, [esi + 1]
mov dword [edi + 0x74], edx
lea edx, [esi - 1]
test esi, edx
jne 0x1005b7df
mov ecx, dword [edi]
lea eax, [esi*8 + 4]
push 0
push eax
mov eax, dword [edi + 0x78]
call fcn.100045e0
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x78], eax
mov eax, dword [ebp + 8]
add esp, 8
mov edi, dword [edi + 0x78]
xor edx, edx
cmp edi, edx
je 0x1005b7ef
mov dword [edi + esi*4], 0xffffffff
or edi, 0xffffffff
sub edi, esi
mov esi, dword [ecx]
mov dword [esp + 0x34], edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x38], esi
movzx esi, byte [edi]
mov dword [esp + 0x3c], esi
mov esi, dword [edi + 4]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x24], edx
cmp esi, edx
je 0x1005b8dd
mov eax, dword [ebx + 0x20]
mov edi, dword [ebx + 0x18]
mov ecx, dword [ecx + 0xc]
cmp dword [edi + 0x58], eax
jg 0x1005b83f
xor edi, edi
push edi
push esi
push ecx
push 0xe
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005b865
lea edi, [eax + 1]
mov dword [ebx + 0x20], edi
mov edi, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0xe
xor edi, edi
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1005b885
mov edx, dword [esp + 0x20]
push edi
push edx
push edi
push 0xd
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005b8ad
lea ecx, [eax + 1]
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov word [eax], 0xd
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x78]
cmp eax, edi
je 0x1005b8cb
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 0x10]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov eax, dword [ebx + 0x20]
mov edi, dword [ebp + 0x18]
dec eax
mov dword [ecx + 0x60], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov esi, dword [ecx + 8]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x3c]
cmp esi, 9
je 0x1005b947
cmp esi, 0xd
je 0x1005b947
mov dl, byte [eax + 0x13]
mov edi, 1
test dl, dl
jne 0x1005b906
add dword [eax + 0x4c], edi
mov edx, dword [eax + 0x4c]
jmp 0x1005b912
dec dl
mov byte [eax + 0x13], dl
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x1c]
mov dword [esp + 0x14], edx
mov dl, byte [eax + 0x13]
test dl, dl
jne 0x1005b92f
add dword [eax + 0x4c], edi
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], edi
xor edx, edx
jmp 0x1005b95e
dec dl
mov byte [eax + 0x13], dl
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], edi
xor edx, edx
jmp 0x1005b95e
mov esi, dword [edi + 8]
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], esi
mov edi, 1
mov esi, dword [esp + 0x38]
mov esi, dword [esi]
sub esi, dword [ecx + 4]
test byte [ecx + 0x1c], 1
mov dword [esp + 0x38], esi
je 0x1005ba8b
add dword [eax + 0x4c], edi
mov esi, dword [eax + 0x4c]
mov edi, dword [eax + 0x48]
mov dword [esp + 0x2c], esi
lea esi, [edi + 1]
mov dword [esp + 0x30], edi
mov dword [eax + 0x48], esi
cmp dword [ecx + 0x10], edx
je 0x1005b99d
mov eax, dword [ebp + 8]
call fcn.10039f30
mov esi, eax
jmp 0x1005b9a1
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx + 1]
mov eax, dword [esp + 0x2c]
push edx
push eax
push edi
push 0x3c
push ebx
call fcn.100242d0
add esp, 0x14
test esi, esi
je 0x1005b9f4
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
dec ecx
mov dword [edx + 0x60], ecx
mov ecx, dword [ebx + 0x20]
mov eax, esi
test esi, esi
jns 0x1005b9d9
lea eax, [ecx - 1]
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
je 0x1005b9e8
mov eax, 0x100d87f0
jmp 0x1005b9f1
mov edx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x1005ba19
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0x6a
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005ba49
lea eax, [ecx + 1]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x6a
mov eax, ecx
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
test eax, eax
jle 0x1005ba6e
mov ecx, dword [esp + 0x34]
push 1
push ecx
push eax
push 0x8a
push ebx
call fcn.100242d0
add esp, 0x14
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push edi
push edx
push eax
push 0x64
push ebx
call fcn.100242d0
add esp, 0x14
xor eax, eax
jmp 0x1005bb10
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x1005bab0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0x6b
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005bade
mov esi, dword [ebx + 4]
lea eax, [ecx + 1]
mov dword [ebx + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x18]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x20]
mov byte [eax + 3], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x6b
mov eax, ecx
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x10]
test eax, eax
jle 0x1005bb03
mov edx, dword [esp + 0x34]
push 1
push edx
push eax
push 0x8a
push ebx
call fcn.100242d0
add esp, 0x14
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, 1
cmp dword [esp + 0x28], 0
jle 0x1005bb95
add eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], eax
xor edx, edx
lea ecx, [ecx]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1005bb56
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push edi
push edx
push eax
push 0x2f
mov esi, ebx
call fcn.10024290
add esp, 0x10
xor edx, edx
jmp 0x1005bb82
lea ecx, [eax + 1]
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
mov word [eax], 0x2f
mov eax, 1
add dword [esp + 0x2c], eax
add edi, eax
sub dword [esp + 0x38], eax
jne 0x1005bb30
jmp 0x1005bb97
xor edx, edx
mov ecx, dword [esp + 0x3c]
mov eax, ecx
sub eax, 0xa
je 0x1005be25
dec eax
je 0x1005bd2b
dec eax
je 0x1005bc67
mov eax, dword [ebp + 0x18]
mov esi, dword [ebx + 0x18]
cmp ecx, 9
jne 0x1005bc1d
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x20]
cmp dword [esi + 0x58], eax
jg 0x1005bbeb
mov edx, dword [ebp + 0x14]
push 0
push edx
push ecx
push 0x21
mov esi, ebx
call fcn.10024290
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edi, dword [edx + 8]
add esp, 0x10
jmp 0x1005be87
lea esi, [eax + 1]
mov dword [ebx + 0x20], esi
mov esi, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 0x18]
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov word [eax], 0x21
mov edi, dword [edx + 8]
jmp 0x1005be87
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0x20]
cmp dword [esi + 0x58], eax
jg 0x1005bc3e
push 0
push 0
push ecx
push 0x12
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005be8f
lea esi, [eax + 1]
mov dword [ebx + 0x20], esi
mov esi, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x12
jmp 0x1005be8f
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
mov edi, dword [esp + 0x1c]
cmp dword [ecx + 0x58], eax
jg 0x1005bc8c
mov edx, dword [esp + 0x14]
push 0
push edx
push edi
push 0x4a
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005bcb8
lea ecx, [eax + 1]
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x4a
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005bcdc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
push 0x4b
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005bd0c
mov ecx, dword [ebx + 4]
lea edx, [eax + 1]
mov dword [ebx + 0x20], edx
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x4b
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
jne 0x1005be8f
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
jmp 0x1005be8f
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
inc edi
cmp dword [eax + 0x58], ecx
jg 0x1005bd54
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push 1
push edx
push 0x31
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005bd86
mov esi, dword [ebx + 4]
lea eax, [ecx + 1]
mov dword [ebx + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x10]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x14]
mov byte [eax + 3], 0
mov dword [eax + 8], 1
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov word [eax], 0x31
mov eax, ecx
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
je 0x1005bd9c
mov ecx, edi
mov eax, 1
call fcn.10024cd0
jmp 0x1005bdbc
test eax, eax
jns 0x1005bda4
mov eax, dword [ebx + 0x20]
dec eax
mov edx, dword [ebx + 4]
lea ecx, [eax + eax*4]
push edi
lea ecx, [edx + ecx*4]
push ebx
mov eax, 1
call fcn.10024ec0
add esp, 8
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, 1
call fcn.1003b510
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1005bdf5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
push 0x6e
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005be8f
lea ecx, [eax + 1]
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x6e
jmp 0x1005be8f
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x1005be4e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 1
push edx
push eax
push 0x1d
call fcn.10024290
add esp, 0x10
jmp 0x1005be7e
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], edx
mov word [eax], 0x1d
mov edi, dword [esp + 0x10]
mov ecx, 1
mov eax, dword [ebp + 8]
call fcn.1003b510
cmp dword [esp + 0x14], 0
je 0x1005bef8
cmp dword [esp + 0x10], 0
mov esi, dword [ebp + 8]
je 0x1005becd
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x1005becd
mov edi, dword [esp + 0x10]
xor eax, eax
lea ecx, [esi + 0x7c]
cmp dword [ecx + 0xc], edi
je 0x1005bf4b
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x1005beb1
movzx edx, dl
mov dword [esi + edx*4 + 0x1c], edi
inc byte [esi + 0x13]
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x1005bef8
mov edi, dword [esp + 0x14]
xor eax, eax
lea ecx, [esi + 0x7c]
mov edi, edi
cmp dword [ecx + 0xc], edi
je 0x1005bf54
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x1005bee0
movzx eax, dl
mov dword [esi + eax*4 + 0x1c], edi
inc byte [esi + 0x13]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x78]
xor edx, edx
cmp eax, edx
je 0x1005bf16
mov esi, dword [esp + 0x34]
lea esi, [esi*4 + 4]
sub eax, esi
mov esi, dword [ebx + 0x20]
mov dword [eax], esi
mov eax, dword [ebx + 0x20]
mov edi, dword [ebp + 0x10]
dec eax
test byte [edi + 0x1c], 1
mov dword [ecx + 0x60], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
je 0x1005bf70
cmp dword [ecx + 0x58], eax
jg 0x1005bf5a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
push 3
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005bfba
mov byte [ecx + 6], 1
jmp 0x1005becd
mov byte [ecx + 6], 1
jmp 0x1005bef8
lea ecx, [eax + 1]
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov word [eax], 3
jmp 0x1005bfa3
cmp dword [ecx + 0x58], eax
jg 0x1005bf8f
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
push 7
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005bfba
lea ecx, [eax + 1]
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov word [eax], 7
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
mov byte [eax + 3], dl
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1005c005
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x58], eax
jg 0x1005bfdf
push 0
push 0
push ecx
push 0xf
mov esi, ebx
call fcn.10024290
add esp, 0x10
jmp 0x1005c005
lea edx, [eax + 1]
mov dword [ebx + 0x20], edx
mov edx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xf
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x1005c021
mov edx, dword [esp + 0x20]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov eax, dword [ebx + 0x20]
pop edi
dec eax
pop esi
mov dword [ecx + 0x60], eax
pop ebx
mov esp, ebp
pop ebp
ret