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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [0x416970], 0xffffffff
or dword [0x416974], 0xffffffff
mov eax, dword [0x41696c]
movzx eax, byte [eax + 0x40c260]
movzx ecx, word [0x40c254]
lea edx, [eax + eax*2]
mov eax, ecx
imul eax, dword [0x416968]
push ebx
lea ebx, [eax + eax*4]
add ebx, dword [edx*2 + 0x40c360]
mov byte [ebp - 4], 0
je 0x404b06
and dword [ebp - 0xc], 0
test ecx, ecx
jle 0x404b06
push esi
push edi
mov esi, dword [ebp - 0xc]
mov al, byte [ebx + 4]
imul esi, esi, 0x88
mov cl, al
shr cl, 4
mov byte [ebp - 1], cl
mov cl, byte [ebx + 3]
and al, 0xf
add esi, 0x40b150
cmp cl, 3
mov byte [ebp - 3], al
je 0x40445a
cmp cl, 5
mov byte [ebp - 2], 0
jne 0x40445e
mov byte [ebp - 2], 1
mov cl, byte [ebx + 1]
test cl, cl
je 0x404470
cmp byte [ebp - 2], 0
jne 0x404470
dec cl
mov byte [esi + 0x56], cl
mov cl, byte [ebx]
test cl, cl
je 0x404485
cmp cl, 0xff
je 0x404485
cmp byte [ebp - 2], 0
jne 0x404485
dec cl
mov byte [esi], cl
mov cl, byte [esi + 0x56]
movzx dx, cl
cmp dx, word [0x40c258]
jb 0x4044aa
and dword [0x40aff8], 0
mov edi, 0x40b010
mov dword [ebp - 8], 0x40afc8
jmp 0x4044de
movzx edi, cl
movzx ecx, byte [esi]
lea edi, [edi + edi*4]
shl edi, 6
add edi, 0x40c960
mov cl, byte [ecx + edi + 0x64]
cmp cl, 0x10
jb 0x4044cc
mov ecx, 0x40afc8
jmp 0x4044d2
movzx ecx, cl
mov ecx, dword [edi + ecx*4]
cmp byte [ebp - 2], 0
mov dword [ebp - 8], ecx
jne 0x4044de
mov dword [esi + 8], ecx
cmp byte [esi + 0x64], 7
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x404504
cmp byte [ebx + 3], 7
je 0x404504
mov edx, dword [esi + 0x18]
add edx, ecx
mov dword [esi + 0x10], edx
mov cl, byte [ebx + 3]
and dword [esi + 0x18], 0
mov byte [esi + 0x64], cl
mov byte [esi + 2], 0
mov dl, byte [ebx]
test dl, dl
je 0x404571
cmp dl, 0xff
je 0x404571
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x10]
add cl, dl
dec cl
test byte [0x40c25a], 1
mov byte [esi + 0x57], cl
movsx eax, byte [eax + 0xd]
je 0x404551
movzx ecx, cl
cdq
neg ecx
sub eax, edx
sar eax, 1
shl ecx, 6
sub ecx, eax
add ecx, 0x1e00
mov dword [esi + 0x78], ecx
jmp 0x40455e
push eax
movzx eax, cl
push eax
call fcn.004039d8
mov dword [esi + 0x78], eax
cmp byte [ebp - 2], 0
jne 0x40456a
mov eax, dword [esi + 0x78]
mov dword [esi + 0xc], eax
mov al, byte [ebp - 3]
mov byte [esi + 2], 8
and dword [esi + 0x1c], 0
or byte [esi + 2], 3
cmp byte [ebx + 1], 0
je 0x40458b
push dword [ebp - 8]
push esi
call fcn.00403d05
mov al, byte [ebp - 3]
xor ecx, ecx
mov cl, byte [ebx + 2]
test cl, cl
je 0x40459e
push ecx
push esi
call fcn.004038e9
mov al, byte [ebp - 3]
cmp byte [ebx], 0xff
je 0x4045a9
cmp byte [ebx + 3], 0x14
jne 0x4045ad
mov byte [esi + 3], 1
mov dl, byte [edi + 0x12c]
mov byte [ebp - 2], dl
and byte [ebp - 2], 1
je 0x404611
lea ecx, [esi + 0x55]
cmp byte [ecx], 0
jne 0x40461b
push 2
lea eax, [esi + 0x30]
push eax
push ecx
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x2c]
push eax
xor eax, eax
mov al, byte [edi + 0x126]
push eax
xor eax, eax
mov al, byte [edi + 0x127]
push eax
xor eax, eax
mov al, byte [edi + 0x128]
push eax
lea eax, [edi + 0xc4]
push eax
movzx eax, byte [edi + 0x124]
push eax
push edx
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x24]
push eax
push esi
call fcn.004037f5
mov al, byte [ebp - 3]
jmp 0x40461b
cmp byte [esi + 3], 0
je 0x40461b
and dword [esi + 0x2c], 0
mov dl, byte [edi + 0x12d]
test dl, 1
je 0x404679
lea ecx, [esi + 0x54]
cmp byte [ecx], 0
jne 0x404679
push 4
lea eax, [esi + 0x44]
push eax
push ecx
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x40]
push eax
xor eax, eax
mov al, byte [edi + 0x129]
push eax
xor eax, eax
mov al, byte [edi + 0x12a]
push eax
xor eax, eax
mov al, byte [edi + 0x12b]
push eax
lea eax, [edi + 0xf4]
push eax
movzx eax, byte [edi + 0x125]
push eax
push edx
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x38]
push eax
push esi
call fcn.004037f5
mov al, byte [ebp - 3]
cmp byte [esi + 3], 0
je 0x404693
movzx ecx, word [edi + 0x132]
sub dword [esi + 0x48], ecx
jns 0x40468f
and dword [esi + 0x48], 0
or byte [esi + 2], 2
movzx ecx, byte [ebx + 3]
cmp ecx, 0x15
jg 0x404a66
je 0x40499a
dec ecx
cmp ecx, 0x10
ja case.0x40483a.3
jmp dword [ecx*4 + 0x404b09]
mov al, byte [ebx + 4]
test al, al
je case.0x40483a.3
mov byte [esi + 0x62], al
jmp case.0x40483a.3
mov al, byte [ebx + 4]
test al, al
je case.0x40483a.3
mov byte [esi + 0x61], al
jmp case.0x40483a.3
mov al, byte [ebx + 4]
test al, al
je 0x4046e7
mov byte [esi + 0x60], al
mov eax, dword [esi + 0x78]
mov dword [esi + 0x5c], eax
jmp 0x4046ff
mov eax, dword [esi + 0x78]
mov dword [esi + 0x5c], eax
mov al, byte [ebx + 4]
test al, al
je 0x4046ff
mov byte [esi + 0x6a], al
and byte [esi + 2], 0xf6
jmp case.0x40483a.3
mov cl, byte [ebp - 1]
test cl, cl
je 0x404712
mov byte [esi + 0x6c], cl
test al, al
je 0x404725
mov byte [esi + 0x6d], al
jmp 0x404725
mov al, byte [ebx + 4]
test al, al
je 0x404725
mov byte [esi + 0x6a], al
push esi
call fcn.00403598
jmp case.0x40483a.3
mov cl, byte [ebp - 1]
test cl, cl
je 0x40473a
mov byte [esi + 0x6f], cl
test al, al
je case.0x40483a.3
mov byte [esi + 0x70], al
jmp case.0x40483a.3
movzx eax, byte [ebx + 4]
jmp 0x4048d9
mov al, byte [ebx + 4]
test al, al
je 0x404760
movzx eax, al
mov dword [esi + 0x7c], eax
cmp dword [esi + 4], 0
je case.0x40483a.3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov eax, dword [esi + 0x7c]
add edx, dword [ecx + 4]
shl eax, 8
cmp eax, edx
jb 0x40478c
mov al, byte [esi + 2]
and al, 0xf7
or al, 0x20
mov byte [esi + 2], al
jmp case.0x40483a.3
mov ecx, dword [esi + 4]
mov dword [ecx + 0x18], eax
jmp case.0x40483a.3
mov al, byte [ebx + 4]
test al, al
je case.0x40483a.3
mov byte [esi + 0x6a], al
jmp case.0x40483a.3
movzx eax, byte [ebx + 4]
movzx ecx, word [0x40c250]
and dword [0x416974], 0
cmp eax, ecx
mov dword [0x416970], eax
jl 0x4047cc
and dword [0x416970], 0
mov byte [ebp - 4], 1
jmp case.0x40483a.3
movzx eax, byte [ebx + 4]
jmp 0x4048f7
movzx ecx, byte [ebp - 1]
movzx eax, al
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
cmp eax, 0x3f
mov dword [0x416974], eax
jle 0x4047fc
and dword [0x416974], 0
cmp byte [ebp - 4], 0
jne 0x40480d
mov eax, dword [0x41696c]
inc eax
mov dword [0x416970], eax
movzx eax, word [0x40c250]
cmp dword [0x416970], eax
jl case.0x40483a.3
and dword [0x416970], 0
jmp case.0x40483a.3
movzx ecx, byte [ebp - 1]
dec ecx
cmp ecx, 0xd
ja case.0x40483a.3
jmp dword [ecx*4 + 0x404b4d]
test al, al
je 0x404848
mov byte [esi + 0x76], al
movzx eax, byte [esi + 0x76]
shl eax, 2
jmp 0x404a89
test al, al
je 0x40485b
mov byte [esi + 0x77], al
movzx eax, byte [esi + 0x77]
shl eax, 2
add dword [esi + 0xc], eax
jmp case.0x40483a.3
mov cl, byte [esi + 0x67]
and cl, 0xf0
or cl, al
mov byte [esi + 0x67], cl
jmp case.0x40483a.3
mov ecx, dword [ebp - 8]
mov byte [ecx + 0xd], al
jmp case.0x40483a.3
test al, al
jne 0x404899
mov eax, dword [0x416968]
mov dword [esi + 0x80], eax
jmp case.0x40483a.3
lea ecx, [esi + 0x84]
mov edx, dword [ecx]
test edx, edx
jne 0x4048ac
movzx eax, al
mov dword [ecx], eax
jmp 0x4048af
dec edx
mov dword [ecx], edx
cmp dword [ecx], 0
je case.0x40483a.3
mov eax, dword [esi + 0x80]
mov dword [0x416974], eax
jmp case.0x40483a.3
mov cl, byte [esi + 0x67]
and cl, 0xf
shl al, 4
jmp 0x404870
movzx eax, al
shl eax, 4
mov dword [esi + 0x14], eax
jmp 0x404ada
test al, al
je 0x4048e8
mov byte [esi + 0x75], al
movzx eax, byte [esi + 0x75]
add dword [esi + 0x10], eax
push 0x40
pop eax
cmp dword [esi + 0x10], eax
jle 0x4048fa
mov dword [esi + 0x10], eax
or byte [esi + 2], 2
jmp case.0x40483a.3
test al, al
je 0x40490a
mov byte [esi + 0x75], al
movzx eax, byte [esi + 0x75]
sub dword [esi + 0x10], eax
jns 0x4048fa
and dword [esi + 0x10], 0
jmp 0x4048fa
mov eax, dword [ebp - 0x14]
and byte [esi + 2], 0xf0
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
jmp case.0x40483a.3
mov ecx, dword [0x416964]
movzx eax, al
imul ecx, eax
mov dword [0x416980], ecx
jmp case.0x40483a.3
mov al, byte [ebx + 4]
cmp al, 0x20
movzx eax, al
jae 0x40495f
mov dword [0x416964], eax
jmp case.0x40483a.3
push eax
call fcn.004043b1
jmp case.0x40483a.3
movzx eax, byte [ebx + 4]
push 0x40
pop ecx
cmp eax, ecx
mov dword [0x416960], eax
jle 0x4048fa
mov dword [0x416960], ecx
jmp 0x4048fa
mov al, byte [ebx + 4]
test al, al
je case.0x40483a.3
mov byte [0x41698c], al
jmp case.0x40483a.3
cmp byte [ebp - 2], 0
je case.0x40483a.3
movzx cx, byte [ebx + 4]
lea edx, [edi + 0xc8]
xor eax, eax
cmp cx, word [edx]
jbe 0x4049d1
mov dword [ebp - 0x10], edx
movzx edx, byte [edi + 0x124]
cmp eax, edx
jge 0x4049d1
add dword [ebp - 0x10], 4
mov edx, dword [ebp - 0x10]
inc eax
cmp cx, word [edx]
ja 0x4049b9
movzx ecx, byte [edi + 0x124]
lea edx, [ecx - 1]
cmp eax, edx
mov dword [esi + 0x24], eax
jl 0x4049f6
movzx eax, word [edi + ecx*4 + 0xc2]
mov dword [esi + 0x2c], eax
mov byte [esi + 0x55], 1
jmp case.0x40483a.3
mov byte [esi + 0x55], 0
movzx ecx, byte [ebx + 4]
mov dword [esi + 0x20], ecx
movzx ecx, word [edi + eax*4 + 0xc4]
lea edx, [eax + 1]
mov dword [ebp - 0x10], ecx
movzx ecx, word [edi + eax*4 + 0xc6]
movzx eax, word [edi + edx*4 + 0xc4]
shl ecx, 0x10
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
je 0x404a45
mov eax, edx
movzx eax, word [edi + eax*4 + 0xc6]
shl eax, 0x10
sub eax, ecx
cdq
idiv dword [ebp - 0x18]
mov dword [esi + 0x30], eax
jmp 0x404a49
and dword [esi + 0x30], 0
mov eax, dword [esi + 0x20]
sub eax, dword [ebp - 0x10]
imul eax, dword [esi + 0x30]
add ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x28], ecx
sar ecx, 0x10
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x24], eax
jmp case.0x40483a.3
sub ecx, 0x19
je 0x404ad0
dec ecx
dec ecx
je 0x404abf
dec ecx
dec ecx
je 0x404aa4
sub ecx, 4
jne case.0x40483a.3
cmp byte [ebp - 1], 1
jne 0x404a8e
test al, al
je 0x404a85
mov byte [esi + 0x69], al
movzx eax, byte [esi + 0x69]
sub dword [esi + 0xc], eax
jmp case.0x40483a.3
cmp byte [ebp - 1], 2
jne case.0x40483a.3
test al, al
je 0x404a9b
mov byte [esi + 0x68], al
movzx eax, byte [esi + 0x68]
jmp 0x404862
cmp byte [ebx + 4], 0
je 0x404ab7
mov cl, byte [ebp - 1]
inc cl
inc al
mov byte [esi + 0x72], cl
mov byte [esi + 0x73], al
push esi
call fcn.00403ab9
jmp case.0x40483a.3
cmp byte [ebx + 4], 0
je case.0x40483a.3
mov cl, byte [ebp - 1]
mov byte [esi + 0x65], cl
mov byte [esi + 0x66], al
jmp case.0x40483a.3
mov al, byte [ebx + 4]
test al, al
je case.0x40483a.3
mov byte [esi + 0x63], al
or byte [esi + 2], 4
push edi
push esi
call fcn.0040362b
push dword [ebp - 8]
push esi
call fcn.00403af1
movzx eax, word [0x40c254]
inc dword [ebp - 0xc]
add ebx, 5
cmp dword [ebp - 0xc], eax
jl 0x40442a
pop edi
pop esi
pop ebx
leave
ret