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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
push esi
push ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x144]
movzx ecx, byte [eax + edi + 0x28]
mov edx, dword [edi]
movsx ebx, word [edi + 0x14]
mov eax, ebx
imul eax, dword [edi + 0x140]
lea eax, [eax + eax*4]
mov edx, dword [edx + ecx*8 + 4]
add eax, edx
mov dword [ebp - 4], eax
je 0x4054ce
mov dword [ebp - 8], 0
cmp dword [ebp - 8], ebx
jge 0x4054ce
mov edx, dword [ebp - 8]
lea eax, [edx + edx*4]
lea eax, [edx + eax*4]
lea ecx, [edx + eax*2]
shl ecx, 2
lea ebx, [ecx + 0x429ee0]
movzx edx, byte [ecx + 0x429f46]
movsx eax, word [edi + 0x20]
cmp edx, eax
jl 0x404c54
mov dword [ebp - 0xc], 0x429d40
mov dword [ebp - 0x10], 0x429ea0
mov dword [0x429ea0], 0
jmp 0x404c9d
lea eax, [edx + edx*4]
mov edx, eax
shl edx, 4
add eax, edx
mov edx, dword [edi + 4]
lea eax, [edx + eax*4]
mov dword [ebp - 0xc], eax
movzx edx, byte [ecx + 0x429ee0]
add eax, 0x44
cmp byte [edx + eax], 0xf
jbe 0x404c80
mov dword [ebp - 0x10], 0x429ea0
jmp 0x404c90
movzx edx, byte [edx + eax]
mov eax, dword [ebp - 0xc]
add eax, 4
mov edx, dword [eax + edx*4]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x404c9d
mov dword [ebp - 0x10], 0x429ea0
mov eax, dword [ebp - 4]
mov al, byte [eax + 3]
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 4]
mov al, byte [edx + 4]
mov byte [ebp - 0x12], al
shr byte [ebp - 0x12], 4
and al, 0xf
mov byte [ebp - 0x13], al
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov byte [ebx + 2], 0
mov esi, dword [ebp - 0xc]
test byte [esi + 0x14c], 1
je 0x404d32
cmp byte [ebx + 0x3c], 0
jne 0x404d32
add esp, 0xfffffff8
push 2
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x30]
push eax
lea eax, [ebx + 0x34]
push eax
movzx eax, byte [esi + 0x146]
push eax
movzx eax, byte [esi + 0x147]
push eax
movzx eax, byte [esi + 0x148]
push eax
mov eax, esi
add eax, 0xa4
push eax
movzx eax, byte [esi + 0x144]
push eax
movzx eax, byte [esi + 0x14c]
push eax
lea eax, [ebx + 0x28]
push eax
lea eax, [ebx + 0x2c]
push eax
push ebx
call fcn.00403a40
add esp, 0x40
mov eax, dword [ebp - 0xc]
test byte [eax + 0x14d], 1
je 0x404d9d
cmp byte [ebx + 0x54], 0
jne 0x404d9d
add esp, 0xfffffff8
push 4
lea eax, [ebx + 0x50]
push eax
lea eax, [ebx + 0x54]
push eax
lea eax, [ebx + 0x48]
push eax
lea eax, [ebx + 0x4c]
push eax
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x149]
push eax
movzx eax, byte [edx + 0x14a]
push eax
movzx eax, byte [edx + 0x14b]
push eax
mov eax, edx
add eax, 0xf4
push eax
movzx eax, byte [edx + 0x145]
push eax
movzx eax, byte [edx + 0x14d]
push eax
lea eax, [ebx + 0x40]
push eax
lea eax, [ebx + 0x44]
push eax
push ebx
call fcn.00403a40
add esp, 0x40
cmp byte [ebx + 0x65], 0
je 0x404dc6
mov esi, dword [ebp - 0xc]
movzx eax, word [esi + 0x152]
mov edx, dword [ebx + 0x58]
sub edx, eax
mov eax, edx
mov dword [ebx + 0x58], eax
test eax, eax
jge 0x404dc2
mov dword [ebx + 0x58], 0
or byte [ebx + 2], 2
mov esi, dword [ebp - 4]
mov dl, byte [esi + 2]
mov al, dl
shr al, 4
movzx eax, al
add eax, 0xfffffffa
cmp eax, 9
ja case.0x404de0.8
jmp dword [eax*4 + 0x404de8]
mov eax, edx
and eax, 0xf
mov edx, dword [ebx + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebx + 0x10], eax
test eax, eax
jge 0x404e43
mov dword [ebx + 0x10], 0
jmp 0x404e43
mov eax, edx
and eax, 0xf
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x10], eax
cmp eax, 0x40
jle 0x404e43
mov dword [ebx + 0x10], 0x40
or byte [ebx + 2], 2
jmp case.0x404de0.8
and dl, 0xf
mov byte [ebx + 0x87], dl
add esp, 0xfffffff4
push ebx
call fcn.004036f8
mov al, byte [ebx + 0x86]
add al, byte [ebx + 0x85]
mov byte [ebx + 0x85], al
add esp, 0x10
cmp al, 0x1f
jle case.0x404de0.8
add al, 0xc0
mov byte [ebx + 0x85], al
jmp case.0x404de0.8
mov eax, edx
and eax, 0xf
sub dword [ebx + 0x14], eax
or byte [ebx + 2], 4
jmp case.0x404de0.8
mov eax, edx
and eax, 0xf
add dword [ebx + 0x14], eax
or byte [ebx + 2], 4
jmp case.0x404de0.8
add esp, 0xfffffff4
push ebx
call fcn.00403690
add esp, 0x10
movzx eax, byte [ebp - 0x11]
cmp eax, 0x1d
ja case.0x404ebd.8
jmp dword [eax*4 + 0x404ec4]
mov esi, dword [ebp - 4]
cmp byte [esi + 4], 0
je case.0x404ebd.8
mov ecx, dword [edi + 0x134]
mov edx, 0x55555556
mov eax, edx
imul ecx
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea eax, [edx + edx*2]
sub ecx, eax
mov eax, ecx
cmp eax, 1
je 0x404f78
cmp eax, 2
je 0x404f9c
jmp 0x405025
test byte [edi + 0x22], 1
je 0x404f84
movzx eax, byte [ebp - 0x12]
jmp 0x404fa6
add esp, 0xfffffff8
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx + 0x11]
push eax
movzx eax, byte [ebx + 0x67]
movzx edx, byte [ebp - 0x12]
jmp 0x404fc3
test byte [edi + 0x22], 1
je 0x404fb0
movzx eax, byte [ebp - 0x13]
shl eax, 6
mov dword [ebx + 0x1c], eax
jmp 0x405025
add esp, 0xfffffff8
mov esi, dword [ebp - 0x10]
movsx eax, byte [esi + 0x11]
push eax
movzx eax, byte [ebx + 0x67]
movzx edx, byte [ebp - 0x13]
add eax, edx
push eax
call fcn.00403cd0
mov esi, eax
add esp, 0xfffffff8
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx + 0x11]
push eax
movzx eax, byte [ebx + 0x67]
push eax
call fcn.00403cd0
sub esi, eax
mov dword [ebx + 0x1c], esi
add esp, 0x20
jmp 0x405025
mov dword [ebx + 0x1c], 0
movzx eax, byte [ebx + 0x79]
shl eax, 2
mov esi, dword [ebx + 0xc]
sub esi, eax
mov eax, esi
mov dword [ebx + 0xc], eax
cmp eax, 0x37
jg 0x405025
mov dword [ebx + 0xc], 0x38
jmp 0x405025
mov dword [ebx + 0x1c], 0
movzx eax, byte [ebx + 0x78]
shl eax, 2
add dword [ebx + 0xc], eax
or byte [ebx + 2], 1
jmp case.0x404ebd.8
mov dword [ebx + 0x1c], 0
add esp, 0xfffffff4
push ebx
call fcn.00403690
jmp 0x405499
add esp, 0xfffffff4
push ebx
call fcn.004036f8
mov al, byte [ebx + 0x86]
add al, byte [ebx + 0x85]
mov byte [ebx + 0x85], al
add esp, 0x10
cmp al, 0x1f
jle case.0x404ebd.8
add al, 0xc0
mov byte [ebx + 0x85], al
jmp case.0x404ebd.8
mov dword [ebx + 0x1c], 0
add esp, 0xfffffff4
push ebx
call fcn.00403690
mov al, byte [ebx + 0x7c]
mov byte [ebp - 0x12], al
shr byte [ebp - 0x12], 4
and al, 0xf
mov byte [ebp - 0x13], al
add esp, 0x10
cmp byte [ebp - 0x12], 0
je 0x4050c4
movzx eax, byte [ebp - 0x12]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x10], eax
cmp eax, 0x40
jle 0x40520b
mov dword [ebx + 0x10], 0x40
jmp 0x40520b
cmp byte [ebp - 0x13], 0
je 0x40520b
movzx eax, byte [ebp - 0x13]
mov edx, dword [ebx + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebx + 0x10], eax
test eax, eax
jge 0x40520b
jmp 0x405204
add esp, 0xfffffff4
push ebx
call fcn.004036f8
mov al, byte [ebx + 0x86]
add al, byte [ebx + 0x85]
mov byte [ebx + 0x85], al
add esp, 0x10
cmp al, 0x1f
jle 0x405116
add al, 0xc0
mov byte [ebx + 0x85], al
mov al, byte [ebx + 0x7c]
mov byte [ebp - 0x12], al
shr byte [ebp - 0x12], 4
and al, 0xf
mov byte [ebp - 0x13], al
cmp byte [ebp - 0x12], 0
je 0x40514c
movzx eax, byte [ebp - 0x12]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x10], eax
cmp eax, 0x40
jle 0x40520b
mov dword [ebx + 0x10], 0x40
jmp 0x40520b
cmp byte [ebp - 0x13], 0
je 0x40520b
movzx eax, byte [ebp - 0x13]
mov esi, dword [ebx + 0x10]
sub esi, eax
mov eax, esi
mov dword [ebx + 0x10], eax
test eax, eax
jge 0x40520b
jmp 0x405204
add esp, 0xfffffff4
push ebx
call fcn.00403920
jmp 0x405499
mov al, byte [ebx + 0x7c]
mov byte [ebp - 0x12], al
shr byte [ebp - 0x12], 4
and al, 0xf
mov byte [ebp - 0x13], al
cmp byte [ebp - 0x12], 0
je 0x4051b4
movzx eax, byte [ebp - 0x12]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x10], eax
cmp eax, 0x40
jle 0x40520b
mov dword [ebx + 0x10], 0x40
jmp 0x40520b
cmp byte [ebp - 0x13], 0
je 0x40520b
movzx eax, byte [ebp - 0x13]
mov edx, dword [ebx + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebx + 0x10], eax
test eax, eax
jge 0x40520b
jmp 0x405204
movzx eax, byte [ebp - 0x12]
cmp eax, 0xc
je 0x4051f4
jg 0x4051e8
cmp eax, 9
je 0x405214
jmp case.0x404ebd.8
cmp eax, 0xd
je 0x405240
jmp case.0x404ebd.8
movzx eax, byte [ebp - 0x13]
cmp dword [edi + 0x134], eax
jne case.0x404ebd.8
mov dword [ebx + 0x10], 0
or byte [ebx + 2], 2
jmp case.0x404ebd.8
cmp byte [ebp - 0x13], 0
je case.0x404ebd.8
movzx edx, byte [ebp - 0x13]
mov ecx, dword [edi + 0x134]
mov eax, ecx
mov esi, edx
cdq
idiv esi
test edx, edx
jne case.0x404ebd.8
or byte [ebx + 2], 0xb
jmp case.0x404ebd.8
movzx eax, byte [ebp - 0x13]
cmp dword [edi + 0x134], eax
jne 0x40528c
add esp, 0xfffffff8
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.00404188
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0xc], eax
or byte [ebx + 2], 1
add esp, 0x10
mov edx, dword [ebp - 4]
cmp byte [edx + 2], 0
je 0x4053bd
add esp, 0xfffffff8
movzx eax, byte [edx + 2]
push eax
push ebx
call fcn.00403b68
add esp, 0x10
jmp 0x4053bd
and byte [ebx + 2], 0xf0
jmp case.0x404ebd.8
cmp byte [ebx + 0x7f], 0
je case.0x404ebd.8
movzx ecx, byte [ebx + 0x7f]
mov edx, dword [edi + 0x134]
mov eax, edx
cdq
idiv ecx
test edx, edx
jne case.0x404ebd.8
cmp byte [ebx + 0x7e], 0
je 0x4053bd
movzx eax, byte [ebx + 0x7e]
dec eax
cmp eax, 0xe
ja case.0x4052d1.8
jmp dword [eax*4 + 0x4052d8]
dec dword [ebx + 0x10]
jmp case.0x4052d1.8
add dword [ebx + 0x10], 0xfffffffe
jmp case.0x4052d1.8
add dword [ebx + 0x10], 0xfffffffc
jmp case.0x4052d1.8
add dword [ebx + 0x10], 0xfffffff8
jmp case.0x4052d1.8
add dword [ebx + 0x10], 0xfffffff0
jmp case.0x4052d1.8
mov ecx, dword [ebx + 0x10]
add ecx, ecx
mov edx, 0x55555556
mov eax, ecx
imul edx
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov dword [ebx + 0x10], edx
jmp case.0x4052d1.8
sar dword [ebx + 0x10], 1
jmp case.0x4052d1.8
inc dword [ebx + 0x10]
jmp case.0x4052d1.8
add dword [ebx + 0x10], 2
jmp case.0x4052d1.8
add dword [ebx + 0x10], 4
jmp case.0x4052d1.8
add dword [ebx + 0x10], 8
jmp case.0x4052d1.8
add dword [ebx + 0x10], 0x10
jmp case.0x4052d1.8
mov eax, dword [ebx + 0x10]
lea eax, [eax + eax*2]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebx + 0x10], eax
jmp case.0x4052d1.8
shl dword [ebx + 0x10], 1
cmp dword [ebx + 0x10], 0x40
jle 0x4053ac
mov dword [ebx + 0x10], 0x40
cmp dword [ebx + 0x10], 0
jge 0x4053b9
mov dword [ebx + 0x10], 0
or byte [ebx + 2], 2
or byte [ebx + 2], 8
jmp case.0x404ebd.8
mov al, byte [edi + 0x130]
mov byte [ebp - 0x12], al
shr byte [ebp - 0x12], 4
and al, 0xf
mov byte [ebp - 0x13], al
cmp byte [ebp - 0x12], 0
je 0x405408
movzx eax, byte [ebp - 0x12]
add eax, dword [edi + 0x12c]
mov dword [edi + 0x12c], eax
cmp eax, 0x40
jle case.0x404ebd.8
mov dword [edi + 0x12c], 0x40
jmp case.0x404ebd.8
cmp byte [ebp - 0x13], 0
je case.0x404ebd.8
movzx eax, byte [ebp - 0x13]
mov edx, dword [edi + 0x12c]
sub edx, eax
mov eax, edx
mov dword [edi + 0x12c], eax
test eax, eax
jge case.0x404ebd.8
mov dword [edi + 0x12c], 0
jmp case.0x404ebd.8
mov al, byte [ebx + 0x7d]
mov byte [ebp - 0x12], al
shr byte [ebp - 0x12], 4
and al, 0xf
mov byte [ebp - 0x13], al
cmp byte [ebp - 0x12], 0
je 0x405468
movzx eax, byte [ebp - 0x12]
add eax, dword [ebx + 0x14]
mov dword [ebx + 0x14], eax
cmp eax, 0xff
jle 0x405487
mov dword [ebx + 0x14], 0xff
jmp 0x405487
cmp byte [ebp - 0x13], 0
je 0x405487
movzx eax, byte [ebp - 0x13]
mov esi, dword [ebx + 0x14]
sub esi, eax
mov eax, esi
mov dword [ebx + 0x14], eax
test eax, eax
jge 0x405487
mov dword [ebx + 0x14], 0
or byte [ebx + 2], 4
jmp case.0x404ebd.8
add esp, 0xfffffff4
push ebx
call fcn.00403e08
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.004037d8
add esp, 0xfffffffc
push edi
mov edx, dword [ebp - 0x10]
push edx
push ebx
call fcn.00403e70
add esp, 0x20
inc dword [ebp - 8]
add dword [ebp - 4], 5
movsx eax, word [edi + 0x14]
cmp dword [ebp - 8], eax
jl 0x404c14
lea esp, [ebp - 0x38]
pop ebx
pop esi
pop edi
leave
ret