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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
lea edi, [ebp - 0x74]
mov ecx, 0x1d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x144]
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + ecx + 0x28]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
movsx ecx, word [ecx + 0x14]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x140]
imul esi, ecx
imul esi, esi, 5
mov edx, dword [edx + eax*8 + 4]
add edx, esi
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x403c99
jmp 0x4049a7
mov dword [ebp - 8], 0
jmp 0x403cb4
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 5
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x14]
cmp dword [ebp - 8], eax
jge 0x4049a7
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0xac
add ecx, 0x410e00
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x66]
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x20]
cmp eax, edx
jl 0x403d17
mov dword [ebp - 0x10], 0x4123a0
mov dword [ebp - 0x14], 0x412500
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x403d75
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 0x66]
imul edx, edx, 0x154
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, edx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [ecx + eax + 0x44]
cmp edx, 0x10
jl 0x403d4e
mov dword [ebp - 0x14], 0x412500
jmp 0x403d68
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + ecx + 0x44]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x403d75
mov dword [ebp - 0x14], 0x412500
mov eax, dword [ebp - 4]
mov cl, byte [eax + 3]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 4]
sar eax, 4
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 4]
and edx, 0xf
mov byte [ebp - 0x20], dl
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], 0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x14c]
and ecx, 1
test ecx, ecx
je 0x403e4c
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx + 0x3c]
test eax, eax
jne 0x403e4c
push 2
mov ecx, dword [ebp - 0xc]
add ecx, 0x38
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x3c
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x34
push ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 0x146]
push eax
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 0x147]
push edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 0x148]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0xa4
push edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x144]
push ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 0x14c]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x28
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402150
add esp, 0x38
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [ecx + 0x14d]
and edx, 1
test edx, edx
je 0x403ee2
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax + 0x54]
test ecx, ecx
jne 0x403ee2
push 4
mov edx, dword [ebp - 0xc]
add edx, 0x50
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x54
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x4c
push edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 0x149]
push ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx + 0x14a]
push eax
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 0x14b]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xf4
push eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [ecx + 0x145]
push edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + 0x14d]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x40
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00402150
add esp, 0x38
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx + 0x65]
test eax, eax
je 0x403f28
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x152]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x58]
sub ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x58], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
jge 0x403f1a
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x58], 0
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 2]
or al, 2
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 2], al
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 2]
sar eax, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 6
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 9
ja case.0x403f4c.2
mov edx, dword [ebp - 0x24]
jmp dword [edx*4 + 0x4049b8]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 2]
and ecx, 0xf
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
sub eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0
jge 0x403f7f
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 2]
or dl, 2
mov eax, dword [ebp - 0xc]
mov byte [eax + 2], dl
jmp case.0x403f4c.2
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 2]
and edx, 0xf
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0x40
jle 0x403fbf
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], 0x40
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 2]
or al, 2
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 2], al
jmp case.0x403f4c.2
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 2]
and eax, 0xf
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x87], al
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401c00
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov dl, byte [eax + 0x85]
add dl, byte [ecx + 0x86]
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x85], dl
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + 0x85]
cmp edx, 0x1f
jle 0x404031
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x85]
sub cl, 0x40
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x85], cl
jmp case.0x403f4c.2
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 2]
and ecx, 0xf
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
sub eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 2]
or al, 4
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 2], al
jmp case.0x403f4c.2
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 2]
and eax, 0xf
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
add edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 2]
or dl, 4
mov eax, dword [ebp - 0xc]
mov byte [eax + 2], dl
jmp case.0x403f4c.2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401b30
add esp, 4
mov edx, dword [ebp - 0x18]
and edx, 0xff
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x1d
ja case.0x4040b3.14
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov al, byte [ecx + 0x404a1c]
jmp dword [eax*4 + 0x4049e0]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
jle 0x4041d4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x134]
cdq
mov ecx, 3
idiv ecx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 1
je 0x4040ef
cmp dword [ebp - 0x2c], 2
je 0x40415c
jmp 0x4041c5
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x22]
and eax, 1
test eax, eax
je 0x404113
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
shl ecx, 6
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], ecx
jmp 0x40415a
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x11]
push ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x67]
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
add eax, ecx
push eax
call fcn.004025f0
add esp, 8
mov esi, eax
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0x11]
push eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 0x67]
push edx
call fcn.004025f0
add esp, 8
sub esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], esi
jmp 0x4041c5
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x22]
and edx, 1
test edx, edx
je 0x40417f
mov eax, dword [ebp - 0x20]
and eax, 0xff
shl eax, 6
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], eax
jmp 0x4041c5
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0x11]
push eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 0x67]
mov eax, dword [ebp - 0x20]
and eax, 0xff
add edx, eax
push edx
call fcn.004025f0
add esp, 8
mov esi, eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx + 0x11]
push edx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x67]
push ecx
call fcn.004025f0
add esp, 8
sub esi, eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], esi
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 1
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp case.0x4040b3.14
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 0x79]
shl edx, 2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0x38
jge 0x40420f
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], 0x38
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 2]
or al, 1
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 2], al
jmp case.0x4040b3.14
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x78]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx*4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 1
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp case.0x4040b3.14
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401b30
add esp, 4
jmp case.0x4040b3.14
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401c00
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov dl, byte [eax + 0x85]
add dl, byte [ecx + 0x86]
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x85], dl
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + 0x85]
cmp edx, 0x1f
jle 0x4042bd
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x85]
sub cl, 0x40
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x85], cl
jmp case.0x4040b3.14
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401b30
add esp, 4
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x7c]
sar eax, 4
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 0x7c]
and edx, 0xf
mov byte [ebp - 0x20], dl
mov eax, dword [ebp - 0x1c]
and eax, 0xff
test eax, eax
je 0x40432c
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0x40
jle 0x40432a
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0x40
jmp 0x404363
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
je 0x404363
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
jge 0x404363
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 2]
or al, 2
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 2], al
jmp case.0x4040b3.14
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401c00
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov dl, byte [eax + 0x85]
add dl, byte [ecx + 0x86]
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x85], dl
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + 0x85]
cmp edx, 0x1f
jle 0x4043c1
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x85]
sub cl, 0x40
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x85], cl
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x7c]
sar ecx, 4
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x7c]
and eax, 0xf
mov byte [ebp - 0x20], al
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
test ecx, ecx
je 0x404416
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0x40
jle 0x404414
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], 0x40
jmp 0x40444c
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
je 0x40444c
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
sub edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x10], 0
jge 0x40444c
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 2
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp case.0x4040b3.14
mov eax, dword [ebp - 0xc]
push eax
call fcn.00401f20
add esp, 4
jmp case.0x4040b3.14
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 0x7c]
sar edx, 4
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x7c]
and ecx, 0xf
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
test edx, edx
je 0x4044c5
mov eax, dword [ebp - 0x1c]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
add edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x10], 0x40
jle 0x4044c3
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0x40
jmp 0x4044fb
mov eax, dword [ebp - 0x20]
and eax, 0xff
test eax, eax
je 0x4044fb
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
sub eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0
jge 0x4044fb
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 2]
or dl, 2
mov eax, dword [ebp - 0xc]
mov byte [eax + 2], dl
jmp case.0x4040b3.14
mov cl, byte [ebp - 0x1c]
mov byte [ebp - 0x30], cl
cmp byte [ebp - 0x30], 9
je 0x404561
cmp byte [ebp - 0x30], 0xc
je 0x404530
cmp byte [ebp - 0x30], 0xd
je 0x4045be
jmp 0x404668
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov eax, dword [ebp + 8]
cmp dword [eax + 0x134], edx
jne 0x40455c
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 2]
or al, 2
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 2], al
jmp 0x404668
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
jne 0x404573
jmp 0x404668
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
cdq
idiv ecx
test edx, edx
jne 0x4045b9
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 8
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 2
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 1
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp 0x404668
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x134], eax
jne 0x40462c
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402ba0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x68]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 2]
or dl, 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 2], dl
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 2]
test edx, edx
je 0x40461b
mov eax, dword [ebp - 4]
mov cl, byte [eax + 2]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402340
add esp, 8
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 8
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp 0x404668
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
and cl, 0xfd
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
and cl, 0xfe
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
and cl, 0xfb
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
and cl, 0xf7
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp case.0x4040b3.14
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x7f]
test ecx, ecx
jne 0x40467e
jmp case.0x4040b3.14
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x7f]
mov ecx, eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
cdq
idiv ecx
test edx, edx
jne 0x404820
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x7e]
test ecx, ecx
je 0x404811
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x7e]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0xe
ja case.0x4046cd.7
mov edx, dword [ebp - 0x34]
jmp dword [edx*4 + 0x404a3a]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, 2
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, 8
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, 0x10
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
shl eax, 1
cdq
mov ecx, 3
idiv ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
sar ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, 2
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, 8
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, 0x10
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
jmp case.0x4046cd.7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
imul eax, eax, 3
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
jmp case.0x4046cd.7
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
shl eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0x40
jle 0x4047ef
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0x40
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x10], 0
jge 0x404802
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 2
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 8
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp case.0x4040b3.14
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x130]
sar ecx, 4
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x130]
and eax, 0xf
mov byte [ebp - 0x20], al
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
test ecx, ecx
je 0x40488c
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x12c]
add ecx, edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x12c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x12c], 0x40
jle 0x40488a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x12c], 0x40
jmp 0x4048ce
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
je 0x4048ce
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x12c], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x12c], 0
jge 0x4048ce
mov edx, dword [ebp + 8]
mov dword [edx + 0x12c], 0
jmp case.0x4040b3.14
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x7d]
sar ecx, 4
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x7d]
and eax, 0xf
mov byte [ebp - 0x20], al
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
test ecx, ecx
je 0x40492b
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0xff
jle 0x404929
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], 0xff
jmp 0x404961
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
je 0x404961
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
sub edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x14], 0
jge 0x404961
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
or cl, 4
mov edx, dword [ebp - 0xc]
mov byte [edx + 2], cl
jmp case.0x4040b3.14
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402730
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401d50
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004027d0
add esp, 0xc
jmp 0x403ca2
pop edi
pop esi
pop ebx
add esp, 0x74
cmp ebp, esp
call sub.VCRUNTIME140.dll__chkesp
mov esp, ebp
pop ebp
ret