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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [0x432758], 0xffffffff
or dword [0x43275c], 0xffffffff
mov eax, dword [0x432754]
movzx eax, byte [eax + 0x428048]
movzx ecx, word [0x42803c]
lea edx, [eax + eax*2]
mov eax, ecx
imul eax, dword [0x432750]
push ebx
lea ebx, [eax + eax*4]
add ebx, dword [edx*2 + 0x428148]
mov byte [ebp - 4], 0
je 0x40bd46
and dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40bd46
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, 0x426f38
cmp cl, 3
mov byte [ebp - 3], al
je 0x40b69a
cmp cl, 5
mov byte [ebp - 2], 0
jne 0x40b69e
mov byte [ebp - 2], 1
mov cl, byte [ebx + 1]
test cl, cl
je 0x40b6b0
cmp byte [ebp - 2], 0
jne 0x40b6b0
dec cl
mov byte [esi + 0x56], cl
mov cl, byte [ebx]
test cl, cl
je 0x40b6c5
cmp cl, 0xff
je 0x40b6c5
cmp byte [ebp - 2], 0
jne 0x40b6c5
dec cl
mov byte [esi], cl
mov cl, byte [esi + 0x56]
movzx dx, cl
cmp dx, word [0x428040]
jb 0x40b6ea
and dword [0x426de0], 0
mov edi, 0x426df8
mov dword [ebp - 8], 0x426db0
jmp 0x40b71e
movzx edi, cl
movzx ecx, byte [esi]
lea edi, [edi + edi*4]
shl edi, 6
add edi, 0x428748
mov cl, byte [ecx + edi + 0x64]
cmp cl, 0x10
jb 0x40b70c
mov ecx, 0x426db0
jmp 0x40b712
movzx ecx, cl
mov ecx, dword [edi + ecx*4]
cmp byte [ebp - 2], 0
mov dword [ebp - 8], ecx
jne 0x40b71e
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 0x40b744
cmp byte [ebx + 3], 7
je 0x40b744
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 0x40b7b1
cmp dl, 0xff
je 0x40b7b1
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x10]
add cl, dl
dec cl
test byte [0x428042], 1
mov byte [esi + 0x57], cl
movsx eax, byte [eax + 0xd]
je 0x40b791
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 0x40b79e
push eax
movzx eax, cl
push eax
call fcn.0040ac18
mov dword [esi + 0x78], eax
cmp byte [ebp - 2], 0
jne 0x40b7aa
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 0x40b7cb
push dword [ebp - 8]
push esi
call fcn.0040af45
mov al, byte [ebp - 3]
xor ecx, ecx
mov cl, byte [ebx + 2]
test cl, cl
je 0x40b7de
push ecx
push esi
call fcn.0040ab29
mov al, byte [ebp - 3]
cmp byte [ebx], 0xff
je 0x40b7e9
cmp byte [ebx + 3], 0x14
jne 0x40b7ed
mov byte [esi + 3], 1
mov dl, byte [edi + 0x12c]
mov byte [ebp - 2], dl
and byte [ebp - 2], 1
je 0x40b851
lea ecx, [esi + 0x55]
cmp byte [ecx], 0
jne 0x40b85b
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.0040aa35
mov al, byte [ebp - 3]
jmp 0x40b85b
cmp byte [esi + 3], 0
je 0x40b85b
and dword [esi + 0x2c], 0
mov dl, byte [edi + 0x12d]
test dl, 1
je 0x40b8b9
lea ecx, [esi + 0x54]
cmp byte [ecx], 0
jne 0x40b8b9
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.0040aa35
mov al, byte [ebp - 3]
cmp byte [esi + 3], 0
je 0x40b8d3
movzx ecx, word [edi + 0x132]
sub dword [esi + 0x48], ecx
jns 0x40b8cf
and dword [esi + 0x48], 0
or byte [esi + 2], 2
movzx ecx, byte [ebx + 3]
cmp ecx, 0x15
jg 0x40bca6
je 0x40bbda
dec ecx
cmp ecx, 0x10
ja case.0x40ba7a.3
jmp dword [ecx*4 + 0x40bd49]
mov al, byte [ebx + 4]
test al, al
je case.0x40ba7a.3
mov byte [esi + 0x62], al
jmp case.0x40ba7a.3
mov al, byte [ebx + 4]
test al, al
je case.0x40ba7a.3
mov byte [esi + 0x61], al
jmp case.0x40ba7a.3
mov al, byte [ebx + 4]
test al, al
je 0x40b927
mov byte [esi + 0x60], al
mov eax, dword [esi + 0x78]
mov dword [esi + 0x5c], eax
jmp 0x40b93f
mov eax, dword [esi + 0x78]
mov dword [esi + 0x5c], eax
mov al, byte [ebx + 4]
test al, al
je 0x40b93f
mov byte [esi + 0x6a], al
and byte [esi + 2], 0xf6
jmp case.0x40ba7a.3
mov cl, byte [ebp - 1]
test cl, cl
je 0x40b952
mov byte [esi + 0x6c], cl
test al, al
je 0x40b965
mov byte [esi + 0x6d], al
jmp 0x40b965
mov al, byte [ebx + 4]
test al, al
je 0x40b965
mov byte [esi + 0x6a], al
push esi
call fcn.0040a7d8
jmp case.0x40ba7a.3
mov cl, byte [ebp - 1]
test cl, cl
je 0x40b97a
mov byte [esi + 0x6f], cl
test al, al
je case.0x40ba7a.3
mov byte [esi + 0x70], al
jmp case.0x40ba7a.3
movzx eax, byte [ebx + 4]
jmp 0x40bb19
mov al, byte [ebx + 4]
test al, al
je 0x40b9a0
movzx eax, al
mov dword [esi + 0x7c], eax
cmp dword [esi + 4], 0
je case.0x40ba7a.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 0x40b9cc
mov al, byte [esi + 2]
and al, 0xf7
or al, 0x20
mov byte [esi + 2], al
jmp case.0x40ba7a.3
mov ecx, dword [esi + 4]
mov dword [ecx + 0x18], eax
jmp case.0x40ba7a.3
mov al, byte [ebx + 4]
test al, al
je case.0x40ba7a.3
mov byte [esi + 0x6a], al
jmp case.0x40ba7a.3
movzx eax, byte [ebx + 4]
movzx ecx, word [0x428038]
and dword [0x43275c], 0
cmp eax, ecx
mov dword [0x432758], eax
jl 0x40ba0c
and dword [0x432758], 0
mov byte [ebp - 4], 1
jmp case.0x40ba7a.3
movzx eax, byte [ebx + 4]
jmp 0x40bb37
movzx ecx, byte [ebp - 1]
movzx eax, al
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
cmp eax, 0x3f
mov dword [0x43275c], eax
jle 0x40ba3c
and dword [0x43275c], 0
cmp byte [ebp - 4], 0
jne 0x40ba4d
mov eax, dword [0x432754]
inc eax
mov dword [0x432758], eax
movzx eax, word [0x428038]
cmp dword [0x432758], eax
jl case.0x40ba7a.3
and dword [0x432758], 0
jmp case.0x40ba7a.3
movzx ecx, byte [ebp - 1]
dec ecx
cmp ecx, 0xd
ja case.0x40ba7a.3
jmp dword [ecx*4 + 0x40bd8d]
test al, al
je 0x40ba88
mov byte [esi + 0x76], al
movzx eax, byte [esi + 0x76]
shl eax, 2
jmp 0x40bcc9
test al, al
je 0x40ba9b
mov byte [esi + 0x77], al
movzx eax, byte [esi + 0x77]
shl eax, 2
add dword [esi + 0xc], eax
jmp case.0x40ba7a.3
mov cl, byte [esi + 0x67]
and cl, 0xf0
or cl, al
mov byte [esi + 0x67], cl
jmp case.0x40ba7a.3
mov ecx, dword [ebp - 8]
mov byte [ecx + 0xd], al
jmp case.0x40ba7a.3
test al, al
jne 0x40bad9
mov eax, dword [0x432750]
mov dword [esi + 0x80], eax
jmp case.0x40ba7a.3
lea ecx, [esi + 0x84]
mov edx, dword [ecx]
test edx, edx
jne 0x40baec
movzx eax, al
mov dword [ecx], eax
jmp 0x40baef
dec edx
mov dword [ecx], edx
cmp dword [ecx], 0
je case.0x40ba7a.3
mov eax, dword [esi + 0x80]
mov dword [0x43275c], eax
jmp case.0x40ba7a.3
mov cl, byte [esi + 0x67]
and cl, 0xf
shl al, 4
jmp 0x40bab0
movzx eax, al
shl eax, 4
mov dword [esi + 0x14], eax
jmp 0x40bd1a
test al, al
je 0x40bb28
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 0x40bb3a
mov dword [esi + 0x10], eax
or byte [esi + 2], 2
jmp case.0x40ba7a.3
test al, al
je 0x40bb4a
mov byte [esi + 0x75], al
movzx eax, byte [esi + 0x75]
sub dword [esi + 0x10], eax
jns 0x40bb3a
and dword [esi + 0x10], 0
jmp 0x40bb3a
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.0x40ba7a.3
mov ecx, dword [0x43274c]
movzx eax, al
imul ecx, eax
mov dword [0x432768], ecx
jmp case.0x40ba7a.3
mov al, byte [ebx + 4]
cmp al, 0x20
movzx eax, al
jae 0x40bb9f
mov dword [0x43274c], eax
jmp case.0x40ba7a.3
push eax
call fcn.0040b5f1
jmp case.0x40ba7a.3
movzx eax, byte [ebx + 4]
push 0x40
pop ecx
cmp eax, ecx
mov dword [0x432748], eax
jle 0x40bb3a
mov dword [0x432748], ecx
jmp 0x40bb3a
mov al, byte [ebx + 4]
test al, al
je case.0x40ba7a.3
mov byte [0x432774], al
jmp case.0x40ba7a.3
cmp byte [ebp - 2], 0
je case.0x40ba7a.3
movzx cx, byte [ebx + 4]
lea edx, [edi + 0xc8]
xor eax, eax
cmp cx, word [edx]
jbe 0x40bc11
mov dword [ebp - 0x10], edx
movzx edx, byte [edi + 0x124]
cmp eax, edx
jge 0x40bc11
add dword [ebp - 0x10], 4
mov edx, dword [ebp - 0x10]
inc eax
cmp cx, word [edx]
ja 0x40bbf9
movzx ecx, byte [edi + 0x124]
lea edx, [ecx - 1]
cmp eax, edx
mov dword [esi + 0x24], eax
jl 0x40bc36
movzx eax, word [edi + ecx*4 + 0xc2]
mov dword [esi + 0x2c], eax
mov byte [esi + 0x55], 1
jmp case.0x40ba7a.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 0x40bc85
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 0x40bc89
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.0x40ba7a.3
sub ecx, 0x19
je 0x40bd10
dec ecx
dec ecx
je 0x40bcff
dec ecx
dec ecx
je 0x40bce4
sub ecx, 4
jne case.0x40ba7a.3
cmp byte [ebp - 1], 1
jne 0x40bcce
test al, al
je 0x40bcc5
mov byte [esi + 0x69], al
movzx eax, byte [esi + 0x69]
sub dword [esi + 0xc], eax
jmp case.0x40ba7a.3
cmp byte [ebp - 1], 2
jne case.0x40ba7a.3
test al, al
je 0x40bcdb
mov byte [esi + 0x68], al
movzx eax, byte [esi + 0x68]
jmp 0x40baa2
cmp byte [ebx + 4], 0
je 0x40bcf7
mov cl, byte [ebp - 1]
inc cl
inc al
mov byte [esi + 0x72], cl
mov byte [esi + 0x73], al
push esi
call fcn.0040acf9
jmp case.0x40ba7a.3
cmp byte [ebx + 4], 0
je case.0x40ba7a.3
mov cl, byte [ebp - 1]
mov byte [esi + 0x65], cl
mov byte [esi + 0x66], al
jmp case.0x40ba7a.3
mov al, byte [ebx + 4]
test al, al
je case.0x40ba7a.3
mov byte [esi + 0x63], al
or byte [esi + 2], 4
push edi
push esi
call fcn.0040a86b
push dword [ebp - 8]
push esi
call fcn.0040ad31
movzx eax, word [0x42803c]
inc dword [ebp - 0xc]
add ebx, 5
cmp dword [ebp - 0xc], eax
jl 0x40b66a
pop edi
pop esi
pop ebx
leave
ret