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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, edx
mov eax, ecx
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebx], 0
mov ecx, dword [eax]
mov esi, ecx
test ecx, ecx
je 0x407d97
movzx eax, word [esi]
add esi, 2
cmp eax, 0x20
jb 0x407da3
cmp eax, 0x3a
jne 0x407d61
movzx edx, word [ecx]
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x407d93
lea eax, [ecx + 4]
cmp eax, esi
jne 0x407d93
lea eax, [edx - 0x30]
cmp eax, 1
jge 0x407d93
mov edi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], esi
test edi, edi
jns 0x407da5
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov esi, dword [edi*4 + 0x1a28aa0]
test esi, esi
jne 0x407dba
lea eax, [esi + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1a2f9e0]
mov dword [ebx], esi
cmp byte [esi], 0
je 0x407dce
test eax, eax
jne 0x40861c
mov byte [esi], 0
test eax, eax
jne 0x407de1
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
test eax, eax
je 0x40824c
mov eax, 0x200
mov edx, 0xe00
movzx ecx, ax
mov word [esi + 0xc], ax
lea eax, [ecx - 0x200]
cmp ax, dx
ja 0x40824c
lea eax, [ecx - 1]
test ecx, eax
jne 0x40824c
mov ecx, esi
call fcn.00407a00
cmp eax, 4
je 0x40824c
cmp eax, 2
jae 0x408625
mov edi, dword [esi + 0x50]
cmp eax, ebx
jne 0x408270
mov eax, 0xb
cmp byte [esi + eax + 0x58], 0
jne 0x408625
inc eax
cmp eax, 0x40
jb 0x407e42
movzx ecx, byte [esi + 0xc1]
movzx eax, byte [esi + 0xc0]
shl cx, 8
or cx, ax
mov eax, 0x100
cmp cx, ax
jne 0x408625
mov cl, byte [esi + 0xc4]
mov edx, ebx
movzx eax, word [esi + 0xc]
shl edx, cl
cmp edx, eax
jne 0x408625
movzx eax, byte [esi + 0xa7]
cdq
mov ecx, eax
mov ebx, edx
shld ebx, ecx, 8
movzx eax, byte [esi + 0xa6]
shl ecx, 8
cdq
or ecx, eax
or ebx, edx
movzx eax, byte [esi + 0xa5]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0xa4]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0xa3]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0xa2]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0xa1]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 0xa0]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
mov dword [ebp - 0x18], ebx
movzx eax, byte [esi + 0xae]
mov dword [ebp - 0x14], ecx
movzx ecx, byte [esi + 0xaf]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xad]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xac]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x24], ecx
mov al, byte [esi + 0xc6]
mov byte [esi + 3], al
cmp al, 1
jne 0x408625
mov cl, byte [esi + 0xc5]
mov eax, 1
shl ax, cl
movzx ecx, ax
mov dword [ebp - 0xc], ecx
mov word [esi + 0xa], ax
test cx, cx
je 0x408625
movzx ecx, byte [esi + 0xb7]
movzx eax, byte [esi + 0xb6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb4]
shl ecx, 8
or ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0x7ffffffd
ja 0x408625
lea eax, [ecx + 2]
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x2c], eax
movzx eax, byte [esi + 0xb3]
cdq
mov ebx, eax
mov ecx, edx
movzx eax, byte [esi + 0xb2]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xb1]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xb0]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
add ebx, edi
mov dword [esi + 0x40], ebx
adc ecx, dword [esi + 0x54]
mov dword [esi + 0x44], ecx
movzx eax, byte [esi + 0xab]
mov dword [ebp - 0x10], ecx
cdq
mov ecx, eax
mov edi, edx
movzx eax, byte [esi + 0xaa]
shld edi, ecx, 8
cdq
or edi, edx
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xa9]
shld edi, ecx, 8
cdq
or edi, edx
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xa8]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
mov edx, dword [ebp - 0x18]
or ecx, eax
add ecx, dword [esi + 0x50]
mov eax, dword [ebp - 0xc]
adc edi, dword [esi + 0x54]
mov dword [esi + 0x34], edi
movzx edi, ax
xor eax, eax
imul edi, dword [ebp - 8]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp - 0x14]
add edi, ebx
adc eax, dword [ebp - 0x10]
add ecx, dword [esi + 0x50]
adc edx, dword [esi + 0x54]
cmp edx, eax
jb 0x408625
ja 0x40809f
cmp ecx, edi
jb 0x408625
movzx eax, byte [esi + 0xbb]
cdq
mov ecx, eax
mov edi, edx
movzx eax, byte [esi + 0xba]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [esi + 0xb9]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [esi + 0xb8]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
mov dword [esi + 0x3c], edi
xor eax, eax
mov dword [esi + 0x38], ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x408161
movzx ecx, word [esi + 0xa]
cmp ebx, ecx
jae 0x408625
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x20]
sub ebx, 2
sub eax, 2
cmp ebx, eax
jb 0x408124
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x40813b
mov eax, ecx
cdq
mov ecx, eax
mov eax, edx
mul ebx
mov edi, eax
mov eax, ecx
mul ebx
add edi, edx
add eax, dword [esi + 0x40]
adc edi, dword [esi + 0x44]
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov edx, ebx
add edx, eax
adc ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.004049b0
add esp, 8
test eax, eax
jne 0x40824c
mov eax, dword [ebp - 0xc]
inc ebx
mov dword [ebp - 8], ebx
cmp byte [eax + esi + 0x58], 0x81
lea ecx, [eax + esi]
je 0x40817d
movzx ecx, word [esi + 0xc]
add eax, 0x20
xor edx, edx
div ecx
mov eax, edx
jmp 0x4080f1
movzx edi, byte [ecx + 0x6f]
movzx eax, byte [ecx + 0x6e]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x6d]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x6c]
shl edi, 8
or edi, eax
cmp edi, 2
jb 0x408625
cmp edi, dword [esi + 0x20]
jae 0x408625
movzx eax, word [esi + 0xa]
lea ecx, [edi - 2]
imul ecx, eax
xor eax, eax
add ecx, dword [esi + 0x40]
mov dword [esi + 0x48], ecx
adc eax, dword [esi + 0x44]
xor edx, edx
movzx ecx, word [esi + 0xc]
shr ecx, 2
mov dword [esi + 0x4c], eax
mov eax, edi
div ecx
xor ecx, ecx
add eax, dword [esi + 0x30]
adc ecx, dword [esi + 0x34]
push ecx
push eax
mov ecx, esi
call fcn.004049b0
add esp, 8
test eax, eax
jne 0x40824c
nop dword [eax + eax]
movzx ebx, word [esi + 0xc]
xor edx, edx
shr ebx, 2
mov eax, edi
div ebx
movzx eax, byte [esi + edx*4 + 0x5a]
lea ecx, [esi + edx*4]
movzx edx, byte [ecx + 0x5b]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x59]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x58]
shl edx, 8
or edx, eax
cmp edx, 0xffffffff
je 0x408258
inc edi
cmp edx, edi
jne 0x408625
xor edx, edx
mov eax, edi
div ebx
xor ecx, ecx
add eax, dword [esi + 0x30]
adc ecx, dword [esi + 0x34]
push ecx
push eax
mov ecx, esi
call fcn.004049b0
add esp, 8
test eax, eax
je 0x4081f0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1c], 0xffffffff
mov ebx, 4
mov dword [esi + 0x18], 0xffffffff
jmp 0x408608
movzx ecx, byte [esi + 0x64]
movzx eax, byte [esi + 0x63]
movzx edx, word [esi + 0xc]
shl cx, 8
or cx, ax
cmp cx, dx
jne 0x408625
movzx ecx, byte [esi + 0x6f]
movzx eax, byte [esi + 0x6e]
shl ecx, 8
or ecx, eax
jne 0x4082ba
movzx ecx, byte [esi + 0x7f]
movzx eax, byte [esi + 0x7e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x7d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x7c]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x24], ecx
mov al, byte [esi + 0x68]
mov byte [esi + 3], al
cmp al, 1
je 0x4082cf
cmp al, 2
jne 0x408625
movzx ebx, al
imul ebx, ecx
mov cl, byte [esi + 0x65]
movzx eax, cl
mov word [esi + 0xa], ax
mov dword [ebp - 0x20], ebx
test cl, cl
je 0x408625
movzx ecx, cl
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 1]
test ecx, eax
jne 0x408625
movzx ecx, byte [esi + 0x6a]
mov edi, edx
movzx eax, byte [esi + 0x69]
shl cx, 8
or cx, ax
shr edi, 5
movzx eax, cx
mov dword [ebp - 8], eax
movzx eax, cx
mov dword [ebp - 0x18], eax
cdq
idiv edi
mov word [esi + 8], cx
mov dword [ebp - 0x14], edi
test edx, edx
jne 0x408625
movzx edi, byte [esi + 0x6c]
movzx eax, byte [esi + 0x6b]
shl edi, 8
or edi, eax
jne 0x40835b
movzx edi, byte [esi + 0x7b]
movzx eax, byte [esi + 0x7a]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0x79]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0x78]
shl edi, 8
or edi, eax
movzx edx, byte [esi + 0x67]
movzx ecx, byte [esi + 0x66]
shl dx, 8
or dx, cx
movzx ecx, dx
test cx, cx
je 0x408625
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, eax
add ecx, dword [ebp - 0xc]
add ecx, ebx
cmp edi, ecx
jb 0x408625
sub edi, ecx
xor edx, edx
mov eax, edi
div dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x408625
mov edx, 0xffffff5
cmp edx, eax
mov edx, 2
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 3
cmp eax, 0xfff5
cmovbe ebx, edx
cmp eax, 0xff5
ja 0x4083cb
lea ebx, [edx - 1]
jmp 0x4083d3
test ebx, ebx
je 0x408625
mov edx, dword [esi + 0x50]
lea edi, [eax + 2]
mov eax, dword [esi + 0x54]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], edx
cdq
add eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
adc edx, dword [esi + 0x54]
mov dword [esi + 0x30], eax
xor eax, eax
add ecx, dword [esi + 0x50]
mov dword [esi + 0x20], edi
adc eax, dword [esi + 0x54]
mov dword [ebp - 0x10], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
cmp ebx, 3
jne 0x40848a
movzx ecx, byte [esi + 0x83]
movzx eax, byte [esi + 0x82]
shl cx, 8
or cx, ax
jne 0x408625
cmp word [ebp - 8], cx
jne 0x408625
movzx eax, byte [esi + 0x87]
cdq
mov ecx, eax
mov edi, edx
movzx eax, byte [esi + 0x86]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [esi + 0x85]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [esi + 0x84]
shld edi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x18]
or edi, edx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edi
lea eax, [eax*4 + 8]
jmp 0x4084ba
cmp word [ebp - 8], 0
je 0x408625
mov ecx, dword [ebp - 0x20]
xor eax, eax
add ecx, dword [ebp - 0x14]
mov dword [esi + 0x38], ecx
adc eax, dword [ebp - 0x10]
mov dword [esi + 0x3c], eax
cmp ebx, 2
jne 0x4084b0
lea eax, [edi + edi]
jmp 0x4084ba
lea eax, [edi + edi*2]
and edi, 1
shr eax, 1
add eax, edi
movzx ecx, word [esi + 0xc]
dec eax
add eax, ecx
xor edx, edx
div ecx
cmp dword [esi + 0x24], eax
jb 0x408625
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov byte [esi + 5], 0x80
cmp ebx, 3
jne 0x408608
movzx ecx, byte [esi + 0x89]
movzx eax, byte [esi + 0x88]
shl cx, 8
or cx, ax
cmp cx, 1
jne 0x408608
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add eax, 1
adc ecx, 0
push ecx
push eax
mov ecx, esi
call fcn.004049b0
add esp, 8
test eax, eax
jne 0x408608
mov byte [esi + 5], al
movzx ecx, byte [esi + 0x257]
movzx eax, byte [esi + 0x256]
shl cx, 8
or cx, ax
mov eax, 0xaa55
cmp cx, ax
jne 0x408608
movzx ecx, byte [esi + 0x5b]
movzx eax, byte [esi + 0x5a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x59]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x58]
shl ecx, 8
or ecx, eax
cmp ecx, 0x41615252
jne 0x408608
movzx ecx, byte [esi + 0x23f]
movzx eax, byte [esi + 0x23e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x23d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x23c]
shl ecx, 8
or ecx, eax
cmp ecx, 0x61417272
jne 0x408608
movzx ecx, byte [esi + 0x243]
movzx eax, byte [esi + 0x242]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x241]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x240]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1c], ecx
movzx ecx, byte [esi + 0x247]
movzx eax, byte [esi + 0x246]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x245]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x244]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x18], ecx
mov ax, word [0x1a28784]
inc ax
mov byte [esi], bl
mov word [0x1a28784], ax
mov word [esi + 6], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret