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

Disassembly:
mov byte [esp + 0x13], 1
cmp byte [esp + 0x13], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x5c]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [0x4c8460]
mov dword [ecx + 0x18], eax
mov ecx, dword [esi]
mov eax, dword [0x4c845c]
mov dword [ecx + 0x1c], eax
je 0x405911
mov eax, dword [esi]
test eax, eax
je 0x405911
mov eax, dword [eax + 0x14]
test eax, eax
je 0x405911
push dword [esp + 0x70]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push esi
push dword [ebp + 8]
inc dword [esi]
call fcn.00407e50
test eax, eax
js 0x43f0d3
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
cmp ecx, eax
je case.0x40655f.4
mov esi, dword [edx + 4]
mov dword [esp + 0x40], esi
mov edx, dword [esi + ecx*4]
movzx eax, word [edx + 8]
cmp ax, 0x7f
je case.0x40655f.4
cwde
cmp eax, 0x33
je 0x40558c
cmp eax, 0x4f
je case.0x40655f.4
cmp eax, 5
je 0x405861
cmp eax, 0x58
ja case.0x40655f.4
movzx eax, byte [eax + 0x406be8]
jmp dword [eax*4 + 0x406b7c]
mov eax, dword [edx]
cmp eax, 4
jl 0x40654e
cmp eax, 0x27
jge 0x40654e
mov esi, 0x14
mov dword [esp + 0x14], esi
mov cl, byte [esp + 0x51]
mov edx, dword [esp + 0x2c]
test cl, cl
jne 0x405a41
mov eax, edx
imul eax, dword [eax], 0x15
movzx eax, byte [eax + esi + 0x4a6320]
cmp eax, 3
jne 0x4057f9
cmp dword [esp + 0x20], 1
jne 0x406b6f
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 8], eax
mov dword [esp + 0x18], edi
test eax, eax
jne 0x405c81
test edx, edx
je 0x405582
lea ecx, [ecx]
mov esi, dword [edx + 4]
push edx
call fcn.0042105c
add esp, 4
mov edx, esi
test esi, esi
jne 0x405570
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 0x16
test esi, esi
jne 0x405c21
cmp edi, 0x4c8488
je 0x4055e6
cmp dword [edi + 0xc], 4
je 0x4064e2
mov esi, dword [edi + 8]
test esi, esi
jne 0x4064f4
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x43ec93
push 0x4c8488
mov ecx, edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.00404e60
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 8]
inc esi
mov dword [esp + 0x20], esi
cmp esi, 1
jne 0x405c6d
mov dword [esp + 0x70], edi
cmp dword [0x4c8280], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
je 0x405915
cmp byte [0x4c8289], 0
jne 0x43ee2c
mov esi, dword [0x4c8284]
cmp dword [esi], 0
je 0x405915
mov ecx, dword [0x4c8440]
mov byte [esp + 0x13], 0
test cl, 1
je 0x43ee3d
mov dword [0x4c8460], 0
mov dword [0x4c845c], 0
mov dword [esp + 0x3c], 0x4c8444
mov dword [esp + 0x5c], 0x4c8444
mov edx, dword [esi]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov ecx, dword [edx + 4]
test eax, eax
je 0x43ee66
test ecx, ecx
je 0x43ee6e
cmp eax, ecx
jb 0x4056b8
mov ecx, dword [edx]
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
test edi, edi
je 0x4056b4
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x4056d0
add edx, 2
add ecx, 2
dec edi
jne 0x4056a3
xor eax, eax
jmp 0x4056d6
mov eax, dword [esp + 0x18]
mov edx, dword [edx]
mov edi, dword [eax]
test ecx, ecx
je 0x4056b4
mov ax, word [edi]
cmp ax, word [edx]
je 0x4064d0
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
js 0x405741
jle 0x405447
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x40544c
mov edx, dword [ecx + 4]
cmp edx, eax
ja 0x405cd0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov edi, dword [eax]
mov eax, dword [ecx]
mov dword [esp + 0x54], eax
test edx, edx
je 0x405732
mov ax, word [eax]
cmp ax, word [edi]
mov eax, dword [esp + 0x54]
jne 0x4057b9
add eax, 2
add edi, 2
dec dword [esp + 0x34]
mov dword [esp + 0x54], eax
jne 0x405712
cmp edx, dword [esp + 0x38]
jb 0x4057c1
jmp 0x4057dc
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x40544c
mov edx, dword [ecx + 4]
cmp eax, edx
ja 0x405d0f
mov edi, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [esp + 0x54], eax
mov edi, dword [edi]
test eax, eax
je 0x405a33
mov ax, word [edi]
cmp ax, word [edx]
je 0x405a1f
jae 0x40579c
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
mov dword [esi], ecx
cmp dword [ecx + 0x18], 0
je 0x40544c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
mov dword [ecx + 0x18], eax
mov edi, dword [esi]
mov dword [esp + 0x3c], edi
mov eax, dword [edi + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
jmp 0x405671
mov ax, word [eax]
cmp ax, word [edi]
jae 0x4057dc
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x1c], eax
mov eax, dword [esi]
mov dword [ecx + 0x18], eax
mov dword [esi], ecx
cmp dword [ecx + 0x1c], 0
je 0x40544c
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
mov edi, dword [esi]
mov dword [esp + 0x5c], edi
mov eax, dword [edi + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
jmp 0x405671
cmp eax, 6
ja case.0x4057fe.3
jmp dword [eax*4 + 0x406c44]
test cl, cl
jne 0x405d46
push 8
call fcn.00420fe6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x406b2e
mov dword [ecx], esi
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], eax
inc dword [esp + 0x48]
cmp esi, 7
je 0x4065cc
cmp esi, 8
je 0x4065cc
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x10], edi
mov dword [esp + 8], eax
jmp 0x4054ba
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 0x16
test esi, esi
jne 0x405d52
cmp edi, 0x4c8488
je 0x4058bb
cmp dword [edi + 0xc], 4
je 0x405cd7
mov esi, dword [edi + 8]
test esi, esi
jne 0x405ce9
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x43e9e7
push 0x4c8488
mov ecx, edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.00404e60
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 8]
mov eax, dword [ebp + 0xc]
inc esi
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
cmp esi, 1
jne 0x405d9e
mov esi, edi
mov ecx, dword [esi + 8]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x43eba3
mov eax, dword [esi + 0xc]
cmp eax, 5
jge 0x43ebb5
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc], 1
mov dword [esi], eax
mov esi, dword [ebp + 0xc]
inc dword [esi]
jmp 0x4054ba
mov eax, dword [esp + 0x18]
mov esi, dword [0x4c8270]
mov dword [esp + 0x38], esi
test esi, esi
je 0x43f0a7
mov ecx, dword [0x4c8440]
mov byte [esp + 0x13], 0
test cl, 1
je 0x43ee7b
mov dword [0x4c8460], 0
mov dword [0x4c845c], 0
mov dword [esp + 0x54], 0x4c8444
mov dword [esp + 0x5c], 0x4c8444
nop
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esp + 0x40], edx
test edx, edx
je 0x43eeae
test ecx, ecx
je 0x43eeb6
cmp edx, ecx
jb 0x405b0f
mov ecx, dword [esp + 0x38]
mov esi, edx
mov edx, dword [eax]
mov ecx, dword [ecx]
test esi, esi
je 0x4059a5
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x405b5c
add edx, 2
add ecx, 2
dec esi
jne 0x405990
xor eax, eax
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
test eax, eax
js 0x405b67
jg 0x405a49
mov byte [esp + 0x13], 1
cmp byte [esp + 0x13], 0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x4c8270]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4c8270]
mov eax, dword [0x4c8460]
mov dword [ecx + 0x18], eax
mov ecx, dword [0x4c8270]
mov eax, dword [0x4c845c]
mov dword [ecx + 0x1c], eax
je 0x43f0a7
mov eax, dword [0x4c8270]
test eax, eax
je 0x43f0a7
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x40549b
jmp 0x43f0a7
add edi, 2
add edx, 2
dec dword [esp + 0x54]
jne 0x405773
mov eax, dword [esp + 0x38]
cmp eax, dword [ecx + 4]
jae 0x40579c
jmp 0x405781
mov eax, dword [edx + 4]
jmp 0x405534
lea eax, [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x4059c2
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
cmp ecx, edx
jbe 0x405a6b
mov ecx, edx
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
test eax, eax
je 0x405a98
nop
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x405aa0
add edx, 2
add ecx, 2
dec dword [esp + 0x34]
jne 0x405a80
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
jb 0x405aa2
jmp 0x405ac5
jae 0x405ac5
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx]
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
mov eax, dword [0x4c8270]
mov dword [esi + 0x18], eax
mov dword [0x4c8270], esi
cmp dword [esi + 0x1c], 0
je 0x4059c2
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0x1c], esi
mov eax, dword [0x4c8270]
mov dword [esp + 0x5c], eax
mov esi, dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [0x4c8270], esi
jmp 0x405960
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00406e30
add byte [eax], al
test eax, eax
js 0x43e691
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
jmp 0x405522
mov edi, dword [esp + 0x18]
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x405d2d
lea ebx, [ebx]
mov edi, dword [esp + 0x30]
mov ax, word [eax]
cmp ax, word [edi]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
je 0x405d1a
mov ax, word [eax]
mov ecx, dword [esp + 0x30]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4059af
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4059a7
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x18]
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x4059c2
mov eax, dword [ecx + 4]
cmp edx, eax
ja 0x4066ef
mov edi, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [edi]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
test edx, edx
je 0x405bc5
nop
mov edi, dword [esp + 0x30]
mov ax, word [eax]
cmp ax, word [edi]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
jne 0x405bcc
add dword [esp + 0x30], 2
add eax, 2
dec dword [esp + 0x34]
mov dword [esp + 0x3c], eax
jne 0x405ba0
cmp edx, dword [ecx + 4]
jb 0x405bd8
jmp 0x405bfb
mov edx, dword [esp + 0x30]
mov ax, word [eax]
cmp ax, word [edx]
jae 0x405bfb
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x1c]
mov dword [ecx], eax
mov eax, dword [0x4c8270]
mov dword [esi + 0x1c], eax
mov dword [0x4c8270], esi
cmp dword [esi + 0x18], 0
je 0x4059c2
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x18], esi
jno 0x405c1a
mov eax, dword [0x4c8270]
mov dword [esp + 0x54], eax
mov esi, dword [eax + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [0x4c8270], esi
jmp 0x405960
cmp byte [esp + 0x29], 0
jne 0x4062c4
push 0x18
call fcn.00420fe6
mov esi, eax
add esp, 4
test esi, esi
je 0x406b1f
push 0x4c8488
mov ecx, esi
mov dword [esi + 8], 0
call fcn.00404e60
mov eax, dword [esp + 8]
mov dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0x24], eax
jmp 0x4055ea
cmp byte [esp + 0x29], 0
jne 0x406b26
mov dword [esp + 0x70], eax
jmp 0x4055fc
mov edi, dword [esp + 8]
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x78], eax
test esi, esi
jne 0x406716
mov eax, dword [edi + 0xc]
cmp eax, 5
jge 0x40689b
push edi
mov dword [edi + 0xc], 1
mov dword [edi], 0
call fcn.0042105c
mov eax, dword [esp + 0x7c]
add esp, 4
mov edi, eax
test eax, eax
jne 0x405c85
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
jmp 0x405569
mov edx, eax
jmp 0x4056fe
cmp dword [0x4c8494], 4
jne 0x405887
jmp 0x43e9ba
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x43e9cd
push esi
call fcn.0042105c
add esp, 4
mov dword [edi + 8], 0
jmp 0x405892
mov eax, edx
mov dword [esp + 0x38], edx
jmp 0x40575f
add dword [esp + 0x30], 2
add eax, 2
mov dword [esp + 0x3c], eax
dec ecx
jne 0x405b30
xor eax, eax
jmp 0x4059af
lea eax, [ecx + 1]
mov esi, 0xd
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40551e
mov dword [edx], esi
mov byte [esp + 0x51], 0
jmp 0x405834
cmp byte [esp + 0x29], 0
jne 0x406459
push 0x18
call fcn.00420fe6
mov esi, eax
add esp, 4
test esi, esi
je 0x406b10
push 0x4c8488
mov ecx, esi
mov dword [esi + 8], 0
call fcn.00404e60
mov eax, dword [esp + 8]
mov edx, esi
mov dword [esi + 0x10], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 0x24], edx
jmp 0x4058bf
cmp byte [esp + 0x29], 0
jne 0x406b17
mov esi, edx
jmp 0x4058dd
test cl, cl
je 0x406317
mov eax, dword [edx + 4]
cmp dword [eax], 0x12
je 0x405e3a
test cl, cl
jne 0x406451
cmp dword [edx], 0x14
je 0x406b4e
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00406e30
test eax, eax
js 0x43e691
mov edx, dword [esp + 0x4c]
mov cl, byte [esp + 0x51]
mov dword [esp + 0x2c], edx
jmp case.0x4057fe.2
test ecx, ecx
je 0x405e16
mov eax, dword [esi + ecx*4 - 4]
movzx eax, word [eax + 8]
cmp ax, 0x48
je 0x43e5c6
cmp ax, 0x4f
je 0x43e5c6
lea eax, [ecx + 1]
mov esi, 0x12
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40551e
lea eax, [ecx + 1]
mov esi, 0x13
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40551e
test cl, cl
je 0x405e58
mov esi, dword [edx + 4]
push edx
call fcn.0042105c
mov edx, esi
add esp, 4
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], edx
cmp byte [esp + 0x50], 0
je 0x43eec3
mov byte [esp + 0x51], 1
dec dword [esp + 0x48]
jmp case.0x4057fe.3
lea eax, [ecx + 1]
mov esi, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40551e
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 0x16
test esi, esi
je 0x40677a
cmp byte [esp + 0x29], 0
jne 0x40681e
push 0x18
call fcn.00420fe6
mov esi, eax
add esp, 4
test esi, esi
je 0x406ae2
push 0x4c8488
mov ecx, esi
invalid
inc esi
or byte [eax], al
add byte [eax], al