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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
lea edi, [ebp - 0xa0]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 4], 0
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x150], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14c], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x144]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + eax + 0x28]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
movsx eax, word [eax + 0x14]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x140]
imul esi, eax
imul esi, esi, 5
mov ecx, dword [ecx + edx*8 + 4]
add ecx, esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x402d41
jmp 0x403b64
mov dword [ebp - 0x10], 0
jmp 0x402d5c
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
add eax, 5
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x14]
cmp dword [ebp - 0x10], edx
jge 0x403b64
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 4]
sar ecx, 4
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
and eax, 0xf
mov byte [ebp - 0x24], al
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0xac
add ecx, 0x410e00
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 3]
cmp eax, 3
je 0x402dd6
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 3]
cmp edx, 5
je 0x402dd6
mov dword [ebp - 0x58], 0
jmp 0x402ddd
mov dword [ebp - 0x58], 1
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x34], al
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 1]
test edx, edx
je 0x402e08
movsx eax, byte [ebp - 0x34]
test eax, eax
jne 0x402e08
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 1]
sub edx, 1
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x66], dl
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x402e39
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xff
je 0x402e39
movsx edx, byte [ebp - 0x34]
test edx, edx
jne 0x402e39
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
sub ecx, 1
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 0x66]
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x20]
cmp ecx, eax
jl 0x402e65
mov dword [ebp - 0x18], 0x4123a0
mov dword [ebp - 0x1c], 0x412500
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0
jmp 0x402ec7
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx + 0x66]
imul eax, eax, 0x154
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
add edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + ecx + 0x44]
cmp eax, 0x10
jl 0x402e9c
mov dword [ebp - 0x1c], 0x412500
jmp 0x402eb6
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + edx + 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4 + 4]
mov dword [ebp - 0x1c], eax
movsx ecx, byte [ebp - 0x34]
test ecx, ecx
jne 0x402ec7
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx + 0x6c]
cmp edx, 7
jne 0x402f0e
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 3]
cmp ecx, 7
je 0x402f0e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x18]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 3]
mov byte [eax + 0x6c], dl
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], 0
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx]
test eax, eax
je 0x402fda
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0xff
je 0x402fda
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx + 0x1f]
lea ecx, [ecx + eax - 1]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x67], cl
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x22]
and ecx, 1
test ecx, ecx
je 0x402fa0
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx + 0x67]
shl eax, 4
shl eax, 2
mov ecx, 0x1e00
sub ecx, eax
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx + 0x11]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x68], ecx
jmp 0x402fbf
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx + 0x11]
push edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 0x67]
push ecx
call fcn.004025f0
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x68], eax
movsx eax, byte [ebp - 0x34]
test eax, eax
jne 0x402fd3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x68]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], 8
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 2]
or cl, 1
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 2]
or cl, 2
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 1]
test ecx, ecx
je 0x40301e
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402ba0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 2]
test edx, edx
je 0x40303d
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 2]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402340
add esp, 8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xff
je 0x403059
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 3]
cmp eax, 0x14
jne 0x403060
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x65], 1
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 0x14c]
and eax, 1
test eax, eax
je 0x4030f9
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx + 0x3c]
test edx, edx
jne 0x4030f7
push 2
mov eax, dword [ebp - 0x14]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x3c
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x30
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x34
push eax
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + 0x146]
push edx
mov eax, dword [ebp - 0x18]
mov cl, byte [eax + 0x147]
push ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 0x148]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xa4
push ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 0x144]
push eax
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + 0x14c]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402150
add esp, 0x38
jmp 0x40310e
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x65]
test ecx, ecx
je 0x40310e
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 0x14d]
and ecx, 1
test ecx, ecx
je 0x4031a5
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0x54]
test eax, eax
jne 0x4031a5
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x50
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x54
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 0x149]
push eax
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + 0x14a]
push edx
mov eax, dword [ebp - 0x18]
mov cl, byte [eax + 0x14b]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xf4
push edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 0x145]
push ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 0x14d]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x44
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402150
add esp, 0x38
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx + 0x65]
test edx, edx
je 0x4031ec
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + 0x152]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x58]
sub eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x58], 0
jge 0x4031dd
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 2]
or dl, 2
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], dl
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 3]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
sub eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x20
ja case.0x40320d.17
mov ecx, dword [ebp - 0x5c]
jmp dword [ecx*4 + 0x403b78]
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
je 0x40322c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 4]
mov byte [ecx + 0x79], al
jmp case.0x40320d.17
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 4]
test edx, edx
je 0x403249
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 4]
mov byte [eax + 0x78], dl
jmp case.0x40320d.17
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 4]
test ecx, ecx
je 0x403269
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 4]
mov byte [edx + 0x84], cl
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
mov dword [edx + 0x80], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 2]
and al, 0xf7
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 2]
and al, 0xfe
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
jmp case.0x40320d.17
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
mov dword [edx + 0x80], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
je 0x4032c0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 4]
mov byte [ecx + 0x7c], al
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 2]
and dl, 0xf7
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], dl
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 2]
and dl, 0xfe
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], dl
jmp case.0x40320d.17
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
je 0x4032fc
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x20]
mov byte [edx + 0x86], al
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x403315
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x24]
mov byte [edx + 0x87], al
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401c00
add esp, 4
jmp case.0x40320d.17
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
je 0x40333e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov al, byte [edx + 4]
mov byte [ecx + 0x7c], al
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401c00
add esp, 4
jmp case.0x40320d.17
mov edx, dword [ebp - 0x20]
and edx, 0xff
test edx, edx
je 0x403368
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0x20]
mov byte [eax + 0x8a], cl
mov edx, dword [ebp - 0x24]
and edx, 0xff
test edx, edx
je 0x403381
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0x24]
mov byte [eax + 0x8b], cl
jmp case.0x40320d.17
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 2]
or al, 4
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
jmp case.0x40320d.17
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
je 0x4033c1
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 4]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x70], edx
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
jne 0x4033cf
jmp case.0x40320d.17
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x70]
shl eax, 8
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0xc]
cmp dword [ebp - 0x38], edx
jb 0x40340c
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 2]
and dl, 0xf7
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], dl
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 2]
or dl, 0x20
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], dl
jmp 0x403418
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x18], eax
jmp case.0x40320d.17
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 4]
test edx, edx
je 0x403435
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 4]
mov byte [eax + 0x7c], dl
jmp case.0x40320d.17
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x150], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14c], 0
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x10]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x150], edx
jl 0x403477
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x150], 0
mov byte [ebp - 8], 1
jmp case.0x40320d.17
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 2]
or al, 2
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
jmp case.0x40320d.17
mov edx, dword [ebp - 0x20]
and edx, 0xff
imul edx, edx, 0xa
mov eax, dword [ebp - 0x24]
and eax, 0xff
add edx, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14c], edx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14c], 0x3f
jle 0x4034d9
mov eax, dword [ebp + 8]
mov dword [eax + 0x14c], 0
movsx ecx, byte [ebp - 4]
test ecx, ecx
jne 0x4034fe
movsx edx, byte [ebp - 8]
test edx, edx
jne 0x4034fe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x144]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x150], ecx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x10]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x150], ecx
jl 0x40351d
mov eax, dword [ebp + 8]
mov dword [eax + 0x150], 0
jmp case.0x40320d.17
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
sub edx, 1
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0xd
ja case.0x403544.2
mov eax, dword [ebp - 0x60]
jmp dword [eax*4 + 0x403bfc]
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x403564
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x24]
mov byte [edx + 0xa8], al
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx + 0xa8]
shl edx, 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
sub ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
jmp case.0x403544.2
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x40359d
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x24]
mov byte [ecx + 0xa9], dl
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 0xa9]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx*4]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
jmp case.0x403544.2
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 0xa2]
and cl, 0xf0
mov edx, dword [ebp - 0x14]
mov byte [edx + 0xa2], cl
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 0xa2]
or cl, byte [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0xa2], cl
jmp case.0x403544.2
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x24]
mov byte [eax + 0x11], cl
jmp case.0x403544.2
mov edx, dword [ebp - 0x24]
and edx, 0xff
test edx, edx
jne 0x40361a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
mov dword [eax + 0x98], edx
jmp 0x40366d
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x9c], 0
jne 0x40363a
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x9c], ecx
jmp 0x40364f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x9c]
sub ecx, 1
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x9c], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x9c], 0
je 0x40366d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x98]
mov dword [ecx + 0x14c], eax
jmp case.0x403544.2
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 0xa2]
and dl, 0xf
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xa2], dl
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
shl ecx, 4
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 0xa2]
or al, cl
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0xa2], al
jmp case.0x403544.2
mov edx, dword [ebp - 0x24]
and edx, 0xff
shl edx, 4
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 2]
or dl, 4
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], dl
jmp case.0x403544.2
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x4036eb
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x24]
mov byte [edx + 0xa7], al
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx + 0xa7]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
add ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0x40
jle 0x403717
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 0x40
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 2]
or al, 2
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
jmp case.0x403544.2
mov edx, dword [ebp - 0x24]
and edx, 0xff
test edx, edx
je 0x403743
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0x24]
mov byte [eax + 0xa7], cl
mov edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx + 0xa7]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
sub edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x10], 0
jge 0x40376f
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 2]
or cl, 2
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
jmp case.0x403544.2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 2]
and cl, 0xfe
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 2]
and cl, 0xfd
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 2]
and cl, 0xfb
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0x14]
mov cl, byte [eax + 2]
and cl, 0xf7
mov edx, dword [ebp - 0x14]
mov byte [edx + 2], cl
jmp case.0x403544.2
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x148], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x148]
imul ecx, dword [eax + 0x138]
mov edx, dword [ebp + 8]
mov dword [edx + 0x148], ecx
jmp case.0x40320d.17
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 4]
cmp ecx, 0x20
jge 0x40382e
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
jmp 0x403843
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401000
add esp, 8
jmp case.0x40320d.17
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x12c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x12c], 0x40
jle 0x403872
mov eax, dword [ebp + 8]
mov dword [eax + 0x12c], 0x40
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx + 2]
or dl, 2
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], dl
jmp case.0x40320d.17
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx + 4]
test edx, edx
je 0x4038a1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 4]
mov byte [eax + 0x130], dl
jmp case.0x40320d.17
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 0x14c]
and ecx, 1
test ecx, ecx
jne 0x4038bd
jmp case.0x40320d.17
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov si, word [ecx + edx*2 + 0xa4]
cmp eax, esi
jle 0x4038ff
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 0x144]
cmp dword [ebp - 0x3c], eax
jge 0x4038ff
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
jmp 0x4038c4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [ecx + 0x144]
sub edx, 1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x2c], edx
jl 0x40394c
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [ecx + 0x144]
lea eax, [edx + edx - 2]
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + eax*2 + 0xa6]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x34], edx
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x3c], 1
jmp case.0x40320d.17
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x3c], 0
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x3c]
shl edx, 1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2 + 0xa4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x40]
shl edx, 1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2 + 0xa4]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x3c]
shl edx, 1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2 + 0xa6]
shl ecx, 0x10
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x40]
shl edx, 1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2 + 0xa6]
shl ecx, 0x10
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
je 0x4039e8
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x4c]
cdq
idiv dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x38], eax
jmp 0x4039f2
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x28]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
imul eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
add ecx, eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
sar ecx, 0x10
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
add ecx, 1
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x2c], ecx
jmp case.0x40320d.17
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 4]
test ecx, ecx
je 0x403a5c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 4]
mov byte [edx + 0x7d], cl
mov edx, dword [ebp - 0x14]
mov al, byte [edx + 2]
or al, 4
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
jmp case.0x40320d.17
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
je 0x403a7f
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x20]
mov byte [ecx + 0x7e], dl
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0x24]
mov byte [eax + 0x7f], cl
jmp case.0x40320d.17
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
je 0x403ab9
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
add ecx, 1
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x93], cl
mov eax, dword [ebp - 0x24]
and eax, 0xff
add eax, 1
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x94], al
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402730
add esp, 4
jmp case.0x40320d.17
mov eax, dword [ebp - 0x20]
and eax, 0xff
cmp eax, 1
jne 0x403b02
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x403aea
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x24]
mov byte [edx + 0x7b], al
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx + 0x7b]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
sub ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
jmp case.0x40320d.17
mov eax, dword [ebp - 0x20]
and eax, 0xff
cmp eax, 2
jne case.0x40320d.17
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x403b25
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x24]
mov byte [edx + 0x7a], al
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx + 0x7a]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
add ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401d50
add esp, 8
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004027d0
add esp, 0xc
jmp 0x402d4a
pop edi
pop esi
pop ebx
add esp, 0xa0
cmp ebp, esp
call sub.VCRUNTIME140.dll__chkesp
mov esp, ebp
pop ebp
ret