Function at 0x40cd20
Capabilities:
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a0
mov eax, dword [0x4e1898]
xor eax, esp
mov dword [esp + 0x29c], eax
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x40], ecx
mov ecx, edi
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x6c], 3
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], edx
test dl, 3
jne 0x40ce09
mov esi, dword [edx]
mov edx, esi
mov eax, esi
not edx
xor eax, 0x25252525
and edx, 0x80808080
sub eax, 0x1010101
test edx, eax
jne 0x40ce05
mov eax, edi
sub eax, ecx
add eax, 0x200
mov dword [esp + 0x24], eax
nop dword [eax]
nop word [eax + eax]
lea eax, [esi - 0x1010101]
test edx, eax
jne 0x40ce6b
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0x24]
je 0x40cdce
cmp eax, 4
jl 0x40ce05
sub eax, 4
mov dword [ecx], esi
mov dword [esp + 0x24], eax
add ecx, 4
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
mov esi, dword [eax]
mov edx, esi
mov eax, esi
not edx
xor eax, 0x25252525
and edx, 0x80808080
sub eax, 0x1010101
test edx, eax
je 0x40cdb0
mov edx, dword [esp + 0x30]
mov al, byte [edx]
cmp al, 0x25
je 0x40ce73
test al, al
je 0x40e7ca
mov esi, dword [esp + 0x40]
test esi, esi
je 0x40ce52
sub ecx, edi
lea eax, [ecx + 1]
cmp eax, 0x200
jl 0x40ce52
add dword [esp + 0x44], ecx
push ecx
push dword [esp + 0x60]
push edi
call esi
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov cl, byte [edx]
mov byte [edi], cl
mov ecx, edi
mov edi, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x18], ecx
inc edx
jmp 0x40cd6d
mov edx, dword [esp + 0x30]
mov al, byte [edx]
jmp 0x40ce0f
movsx eax, byte [edx + 1]
inc edx
xor ecx, ecx
mov dword [esp + 0x30], edx
xor edi, edi
mov dword [esp + 0x14], ecx
or esi, 0xffffffff
mov dword [esp + 0x4c], edi
sub eax, 0x20
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], ecx
cmp eax, 0x3f
ja case.0x40cea7.33
nop dword [eax + eax]
movzx eax, byte [eax + 0x40e83c]
jmp dword [eax*4 + 0x40e818]
or ecx, 1
jmp 0x40cef6
or ecx, 2
jmp 0x40cef6
or ecx, 4
jmp 0x40cef6
or ecx, 8
jmp 0x40cef6
or ecx, 0x40
jmp 0x40cef6
test ecx, 0x100
je 0x40cee8
mov eax, ecx
and eax, 0x800
neg eax
sbb eax, eax
and eax, 0x800
add eax, 0x800
or ecx, eax
jmp 0x40cef6
or ecx, 0x100
jmp 0x40cef6
or ecx, 0x400
movsx eax, byte [edx + 1]
inc edx
sub eax, 0x20
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
cmp eax, 0x3f
jbe 0x40cea0
jmp 0x40cf15
or ecx, 0x10
inc edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
mov al, byte [edx]
cmp al, 0x2a
jne 0x40cf3d
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
add edi, 4
inc edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edx
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov al, byte [edx]
jmp 0x40cf67
cmp al, 0x30
jl 0x40cf63
mov ah, al
cmp ah, 0x39
ja 0x40cf5b
movzx eax, ah
lea edi, [edi + edi*4]
inc edx
lea edi, [edi - 0x18]
lea edi, [eax + edi*2]
mov al, byte [edx]
cmp al, 0x30
jge 0x40cf41
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x34]
mov ecx, edi
cmp al, 0x2e
jne 0x40cfb4
mov al, byte [edx + 1]
inc edx
mov dword [esp + 0x30], edx
cmp al, 0x2a
jne 0x40cf88
mov esi, dword [ecx]
add edi, 4
mov al, byte [edx + 1]
inc edx
mov dword [esp + 0x34], edi
jmp 0x40cfac
xor esi, esi
mov dword [esp + 0x10], esi
cmp al, 0x30
jl 0x40cfb4
mov ah, al
cmp ah, 0x39
ja 0x40cfac
movzx eax, ah
lea esi, [esi + esi*4]
inc edx
lea esi, [esi - 0x18]
lea esi, [eax + esi*2]
mov al, byte [edx]
cmp al, 0x30
jge 0x40cf92
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], esi
movsx eax, al
add eax, 0xffffffb7
mov dword [esp + 0x3c], edi
cmp eax, 0x31
ja case.0x40cfca.74
movzx eax, byte [eax + 0x40e890]
jmp dword [eax*4 + 0x40e87c]
or dword [esp + 0x14], 0x200
inc edx
mov dword [esp + 0x30], edx
cmp byte [edx], 0x68
jne case.0x40cfca.74
inc edx
mov dword [esp + 0x30], edx
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffffbf
cmp eax, 0x37
ja case.0x40d000.67
movzx eax, byte [eax + 0x40e8f8]
jmp dword [eax*4 + 0x40e8c4]
inc edx
mov dword [esp + 0x30], edx
cmp byte [edx], 0x6c
jne case.0x40cfca.74
or dword [esp + 0x14], 0x20
jmp case.0x40cfca.106
mov al, byte [edx + 1]
cmp al, 0x36
jne 0x40d02f
cmp byte [edx + 2], 0x34
jne 0x40d02f
or dword [esp + 0x14], 0x20
add edx, 3
jmp 0x40cfe4
cmp al, 0x33
jne case.0x40cfca.106
cmp byte [edx + 2], 0x32
jne case.0x40cfca.106
add edx, 3
jmp 0x40cfe4
mov eax, dword [edi]
mov esi, str.null
add dword [esp + 0x34], 4
test eax, eax
cmovne esi, eax
mov eax, dword [esp + 0x10]
or edx, 0xffffffff
mov dword [esp + 0x1c], esi
test eax, eax
mov ecx, esi
cmovns edx, eax
call fcn.0040ccc0
mov edi, eax
xor al, al
mov byte [esp + 0x90], al
mov byte [esp + 0x98], al
xor eax, eax
mov dword [esp + 0x28], edi
xor edx, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], eax
jmp 0x40dffe
mov al, byte [edi]
add dword [esp + 0x34], 4
mov byte [esp + 0x29f], al
jmp 0x40e01f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
sub ecx, edi
mov esi, dword [esp + 0x34]
mov eax, dword [eax]
add esi, 4
add ecx, dword [esp + 0x44]
inc edx
mov dword [esp + 0x34], esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
jmp 0x40cd69
movsd xmm0, qword [edi]
cmp cl, 0x41
mov ecx, str.0123456789abcdefxp
movsd qword [esp + 0x80], xmm0
mov eax, str.0123456789ABCDEFXP
cmovne eax, ecx
add dword [esp + 0x34], 8
mov ecx, dword [esp + 0x80]
cmp esi, 0xffffffff
mov dword [esp + 0x24], eax
mov eax, 6
cmove esi, eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x84]
mov edi, eax
mov dword [esp + 0x88], ecx
and edi, 0xfffff
mov ecx, eax
mov dword [esp + 0x8c], eax
sar ecx, 0x14
and ecx, 0x7ff
shr eax, 0x1f
sub ecx, 0x3ff
test eax, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
je 0x40d151
or eax, 0x80
mov dword [esp + 0x14], eax
lea edx, [esp + 0x90]
mov ecx, eax
call fcn.0040cc90
cmp dword [esp + 0x48], 0xfffffc01
mov edx, edi
mov ecx, dword [esp + 0x2c]
jne 0x40d188
mov eax, ecx
or eax, edx
je 0x40d180
mov eax, 0xfffffc02
mov dword [esp + 0x48], eax
jmp 0x40d18e
xor eax, eax
mov dword [esp + 0x48], eax
jmp 0x40d18e
or edx, 0x100000
shld edx, ecx, 8
shl ecx, 8
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], ecx
cmp esi, 0xf
jge 0x40d1d7
mov edi, dword [esp + 0xc]
lea eax, [esi*4]
xor edx, edx
mov ecx, 0x3b
sub ecx, eax
xor eax, eax
bts eax, ecx
cmp ecx, 0x20
cmovae edx, eax
xor eax, edx
cmp ecx, 0x40
mov ecx, dword [esp + 0x2c]
cmovae edx, eax
add ecx, eax
adc edi, edx
mov dword [esp + 0xc], edi
mov edx, edi
movsx eax, byte [esp + 0x90]
mov edi, dword [esp + 0x24]
mov byte [esp + eax + 0x91], 0x30
movsx eax, byte [esp + 0x90]
mov byte [esp + eax + 0x92], 0x78
mov eax, edx
add byte [esp + 0x90], 2
shr eax, 0x1c
shld edx, ecx, 4
shl ecx, 4
mov al, byte [eax + edi]
mov byte [esp + 0xe0], al
test esi, esi
je 0x40d225
mov byte [esp + 0xe1], 0x2e
test esi, esi
mov dword [esp + 0xc], esi
lea edi, [esp + 0xe1]
lea eax, [esp + 0xe2]
cmovne edi, eax
mov dword [esp + 0x2c], edi
cmp esi, 0xd
jbe 0x40d265
mov dword [esp + 0xc], 0xd
jle 0x40d265
lea eax, [esi - 0xd]
mov dword [esp + 0x10], 0
mov dword [esp + 0x54], eax
mov esi, 0xd
jmp 0x40d275
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], 0
test esi, esi
je 0x40d298
dec esi
mov eax, edx
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x24]
shr eax, 0x1c
shld edx, ecx, 4
shl ecx, 4
mov al, byte [eax + esi]
mov esi, dword [esp + 0xc]
mov byte [edi], al
inc edi
test esi, esi
jne 0x40d275
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov al, byte [eax + 0x11]
mov byte [esp + 0x99], al
test ecx, ecx
jns 0x40d2be
neg ecx
mov byte [esp + 0x9a], 0x2d
mov dword [esp + 0x48], ecx
jmp 0x40d2c6
mov byte [esp + 0x9a], 0x2b
cmp ecx, 0x3e8
jl 0x40d2d5
mov eax, 6
jmp 0x40d2ec
cmp ecx, 0x64
jl 0x40d2e1
mov eax, 5
jmp 0x40d2ec
xor eax, eax
cmp ecx, 0xa
setge al
add eax, 3
mov dword [esp + 0xc], eax
mov byte [esp + 0x98], al
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov dword [esp + 0x24], eax
mov al, dl
mov cl, dl
shl al, 2
add cl, al
mov eax, dword [esp + 0x48]
add cl, cl
sub al, cl
mov ecx, dword [esp + 0xc]
add al, 0x30
mov byte [esp + ecx + 0x98], al
cmp ecx, 3
jbe 0x40d374
dec ecx
mov eax, 0x66666667
mov dword [esp + 0xc], ecx
mov ecx, edx
imul ecx
mov dword [esp + 0x3c], ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
mov dword [esp + 0x24], ecx
mov edx, ecx
shl al, 2
add cl, al
mov eax, dword [esp + 0x3c]
add cl, cl
sub al, cl
mov ecx, dword [esp + 0xc]
add al, 0x30
mov byte [esp + ecx + 0x98], al
cmp ecx, 3
ja 0x40d331
mov eax, edi
lea esi, [esp + 0xe0]
sub eax, dword [esp + 0x2c]
mov edx, 0x3000001
mov dword [esp + 0x48], eax
lea eax, [esp + 0xa0]
sub edi, eax
mov dword [esp + 0x1c], esi
sub edi, 0x40
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
jmp 0x40dffa
movsd xmm0, qword [edi]
cmp cl, 0x47
mov eax, str.0123456789ABCDEFXP
mov ecx, str.0123456789abcdefxp
cmovne eax, ecx
add dword [esp + 0x34], 8
mov dword [esp + 0x24], eax
cmp esi, 0xffffffff
jne 0x40d3d0
mov esi, 6
jmp 0x40d3da
test esi, esi
mov eax, 1
cmove esi, eax
sub esp, 8
mov dword [esp + 0x18], esi
lea eax, [esi - 1]
or eax, 0x80000000
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0040f140
add esp, 0x14
test eax, eax
je 0x40d418
or dword [esp + 0x14], 0x80
mov edi, dword [esp + 0x2c]
mov edx, esi
mov ecx, dword [esp + 0x10]
cmp edi, esi
cmova edi, esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], esi
cmp edi, 1
jbe 0x40d45e
nop dword [eax]
test ecx, ecx
je 0x40d456
cmp byte [esi + edi - 1], 0x30
jne 0x40d456
dec edi
dec ecx
mov dword [esp + 0x2c], edi
cmp edi, 1
ja 0x40d440
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
cmp eax, 0xfffffffc
jle 0x40d49f
cmp eax, edx
jg 0x40d49f
test eax, eax
jle 0x40d48f
cmp eax, edi
jge 0x40d484
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x40d9cb
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x40d9cf
cmp ecx, edi
cmovg ecx, edi
sub ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x40d9cb
cmp ecx, edi
jle 0x40d4af
lea ecx, [edi - 1]
mov dword [esp + 0x10], ecx
jmp 0x40d53b
test ecx, ecx
je 0x40d53b
dec ecx
mov dword [esp + 0x10], ecx
jmp 0x40d53b
movsd xmm0, qword [edi]
lea edx, [esp + 0x2c]
cmp cl, 0x45
mov eax, str.0123456789ABCDEFXP
mov ecx, str.0123456789abcdefxp
cmovne eax, ecx
add dword [esp + 0x34], 8
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xc]
cmp esi, 0xffffffff
mov eax, 6
cmove esi, eax
sub esp, 8
mov eax, esi
mov dword [esp + 0x18], esi
or eax, 0x80000000
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0040f140
mov edi, dword [esp + 0x40]
add esp, 0x14
mov esi, dword [esp + 0xc]
test eax, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
je 0x40d53b
or dword [esp + 0x14], 0x80
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
mov byte [esp + 0x98], 0
call fcn.0040cc90
cmp eax, 0x7000
jne 0x40d56b
mov esi, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x10], edx
xor eax, eax
jmp 0x40dffe
mov al, byte [esi]
mov edx, dword [esp + 0x10]
mov byte [esp + 0xe0], al
test edx, edx
je 0x40d584
mov byte [esp + 0xe1], 0x2e
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xe2]
test edx, edx
lea edi, [esp + 0xe1]
cmovne edi, eax
lea eax, [ecx - 1]
cmp eax, edx
jbe 0x40d5a5
lea ecx, [edx + 1]
mov dword [esp + 0x3c], 1
cmp ecx, 1
jbe 0x40d5c5
mov edx, dword [esp + 0x3c]
mov al, byte [edx + esi]
inc edx
mov byte [edi], al
inc edi
cmp edx, ecx
jb 0x40d5b6
mov edx, dword [esp + 0x10]
mov eax, edx
mov dword [esp + 0x10], 0
sub eax, ecx
mov ecx, dword [esp + 0x20]
inc eax
sub ecx, 1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov al, byte [eax + 0xe]
mov byte [esp + 0x99], al
jns 0x40d601
neg ecx
mov byte [esp + 0x9a], 0x2d
mov dword [esp + 0x20], ecx
jmp 0x40d609
mov byte [esp + 0x9a], 0x2b
xor eax, eax
cmp ecx, 0x64
setge al
add eax, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x98], al
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov dword [esp + 0xc], eax
mov al, dl
mov cl, dl
shl al, 2
add cl, al
mov eax, dword [esp + 0x20]
add cl, cl
sub al, cl
mov ecx, dword [esp + 0x24]
add al, 0x30
mov byte [esp + ecx + 0x98], al
dec ecx
mov eax, 0x66666667
mov dword [esp + 0x24], ecx
mov ecx, edx
imul ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
mov dword [esp + 0xc], ecx
mov edx, ecx
shl al, 2
add cl, al
mov eax, dword [esp + 0x3c]
add cl, cl
sub al, cl
mov ecx, dword [esp + 0x24]
add al, 0x30
mov byte [esp + ecx + 0x98], al
cmp ecx, 3
ja 0x40d654
mov edx, 0x3000001
mov dword [esp + 0xc], edx
jmp 0x40dd8d
add dword [esp + 0x34], 8
movsd xmm1, qword [edi]
jmp 0x40d91f
cmp cl, 0x42
mov eax, str.0123456789abcdefxp
mov ecx, dword [esp + 0x14]
mov esi, str.0123456789ABCDEFXP
cmovne esi, eax
xor al, al
mov dword [esp + 0x24], esi
mov byte [esp + 0x90], al
test cl, 8
je 0x40d6f1
mov al, byte [esi + 0xb]
mov word [esp + 0x90], 0x3002
mov byte [esp + 0x92], al
mov edx, 0x180
jmp 0x40d76f
mov ecx, dword [esp + 0x14]
xor al, al
mov dword [esp + 0x24], str.0123456789ABCDEFXP
mov byte [esp + 0x90], al
test cl, 8
je 0x40d71c
mov word [esp + 0x90], 0x3001
mov edx, 0x330
jmp 0x40d76f
and dword [esp + 0x14], 0xffffffef
mov dword [esp + 0x10], 8
cmp cl, 0x58
mov eax, str.0123456789abcdefxp
mov ecx, dword [esp + 0x14]
mov esi, str.0123456789ABCDEFXP
cmovne esi, eax
mov edx, 0x440
xor al, al
mov dword [esp + 0x24], esi
mov byte [esp + 0x90], al
test cl, 8
je 0x40d76f
mov al, byte [esi + 0x10]
mov word [esp + 0x90], 0x3002
mov byte [esp + 0x92], al
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov dword [esp + 0x60], eax
test cl, 0x20
je 0x40d788
add dword [esp + 0x34], 8
mov ecx, dword [edi + 4]
jmp 0x40d78f
add dword [esp + 0x34], 4
xor ecx, ecx
or eax, ecx
mov dword [esp + 0x64], ecx
lea esi, [esp + 0x2a0]
mov dword [esp + 0x48], 0
mov dword [esp + 0x1c], esi
mov byte [esp + 0x98], 0
jne 0x40d7d7
xor al, al
cmp dword [esp + 0x10], 0
mov byte [esp + 0x90], al
jne 0x40d7d7
xor edi, edi
xor edx, edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], edx
jmp 0x40e053
xor edi, edi
nop dword [eax]
movq xmm1, qword [esp + 0x60]
mov ecx, edx
shr ecx, 8
mov eax, 1
shl eax, cl
dec esi
dec eax
mov dword [esp + 0x3c], ecx
and eax, dword [esp + 0xc]
inc edi
mov ecx, dword [esp + 0x24]
mov al, byte [eax + ecx]
mov ecx, dword [esp + 0x3c]
mov byte [esi], al
movd xmm0, ecx
psrlq xmm1, xmm0
movq qword [esp + 0x60], xmm1
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
or eax, dword [esp + 0x64]
jne 0x40d82e
mov eax, dword [esp + 0x10]
cmp edi, eax
jge 0x40d84b
test byte [esp + 0x14], 0x40
je 0x40d7e0
inc edx
mov eax, edx
shr eax, 4
xor eax, edx
test al, 0xf
jne 0x40d7e0
dec esi
and edx, 0xfffffff0
inc edi
mov byte [esi], 0x2c
jmp 0x40d7e0
and edx, 0xf0
mov dword [esp + 0x1c], esi
shl edx, 0x14
sub edx, esi
mov dword [esp + 0x28], edi
lea esi, [esp + 0x2a0]
mov dword [esp + 0x2c], edi
add edx, esi
mov esi, dword [esp + 0x1c]
jmp 0x40dffe
test byte [esp + 0x14], 0x20
mov eax, dword [edi]
mov dword [esp + 0x20], eax
je 0x40d8bb
add dword [esp + 0x34], 8
mov edx, dword [edi + 4]
mov dword [esp + 0x28], edx
cmp cl, 0x75
je 0x40d8e9
test edx, edx
jg 0x40d8e9
jl 0x40d89c
test eax, eax
jae 0x40d8e9
mov ecx, dword [esp + 0x14]
neg eax
mov dword [esp + 0x20], eax
adc edx, 0
neg edx
or ecx, 0x80
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ecx
jmp 0x40d8ed
add dword [esp + 0x34], 4
xor edx, edx
mov dword [esp + 0x28], edx
cmp cl, 0x75
je 0x40d8e9
mov ecx, dword [esp + 0x14]
test eax, eax
jns 0x40d8ed
neg eax
mov dword [esp + 0x28], edx
or ecx, 0x80
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
jmp 0x40d8ed
mov ecx, dword [esp + 0x14]
test ecx, 0x100
je 0x40ddb5
test edx, edx
ja 0x40d90a
jb 0x40d906
cmp eax, 0x400
jae 0x40d90a
xor esi, esi
jmp 0x40d915
cmp esi, 0xffffffff
mov ecx, 1
cmove esi, ecx
mov ecx, eax
call fcn.004679d0
movaps xmm1, xmm0
mov eax, dword [esp + 0x14]
test eax, 0x100
je 0x40d976
movsd xmm2, qword [0x4da0d0]
test eax, 0x800
je 0x40d941
movsd xmm2, qword [0x4da0d8]
cmp eax, 0x4000000
jae 0x40d976
movsd xmm3, qword [0x4da2e0]
comisd xmm2, xmm1
jbe 0x40d962
movaps xmm0, xmm2
xorps xmm0, xmm3
comisd xmm1, xmm0
ja 0x40d972
add eax, 0x1000000
divsd xmm1, xmm2
cmp eax, 0x4000000
jb 0x40d950
mov dword [esp + 0x14], eax
cmp esi, 0xffffffff
lea edx, [esp + 0x2c]
mov eax, 6
lea ecx, [esp + 0xc]
cmove esi, eax
sub esp, 8
lea eax, [esp + 0x50]
mov dword [esp + 0x18], esi
movsd qword [esp], xmm1
push esi
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0040f140
mov edi, dword [esp + 0x40]
add esp, 0x14
mov esi, dword [esp + 0xc]
test eax, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
je 0x40d9cb
or dword [esp + 0x14], 0x80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
mov byte [esp + 0x98], 0
call fcn.0040cc90
mov edx, dword [esp + 0x20]
cmp edx, 0x7000
jne 0x40da04
xor edx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edx
xor eax, eax
jmp 0x40dffe
lea ecx, [esp + 0xe0]
test edx, edx
jg 0x40db1b
mov byte [esp + 0xe0], 0x30
test eax, eax
je 0x40da27
mov byte [esp + 0xe1], 0x2e
test eax, eax
lea edi, [esp + 0xe2]
lea ecx, [esp + 0xe1]
cmovne ecx, edi
neg edx
cmp edx, eax
mov dword [esp + 0x1c], ecx
cmovg edx, eax
mov dword [esp + 0x20], edx
mov edi, edx
mov dword [esp + 0x24], edi
test edx, edx
je 0x40da6d
mov dword [esp + 0x1c], ecx
test cl, 3
je 0x40da65
mov byte [ecx], 0x30
inc ecx
sub edi, 1
jne 0x40da57
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
cmp edi, 4
jl 0x40da97
mov edx, edi
mov eax, 0x30303030
mov edi, dword [esp + 0x1c]
and edx, 0xfffffffc
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
add ecx, edx
mov dword [esp + 0x1c], ecx
sub edi, edx
test edi, edi
je 0x40dab1
push edi
push 0x30
push ecx
call fcn.00468c40
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, edi
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
lea eax, [edi + edx]
cmp eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
jle 0x40dacc
sub eax, edi
mov edx, eax
jmp 0x40dace
sub eax, edi
mov dword [esp + 0x54], eax
mov eax, edx
mov dword [esp + 0x3c], eax
test eax, eax
je 0x40db07
sub esi, ecx
mov edi, edx
mov al, byte [esi + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x40dae0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x20]
sub ecx, edx
mov edx, 0x3000001
mov dword [esp + 0xc], edx
jmp 0x40dd0b
mov ecx, dword [esp + 0x54]
sub ecx, edx
mov edx, 0x3000001
mov dword [esp + 0xc], edx
jmp 0x40dd0b
mov eax, dword [esp + 0x14]
and eax, 0x40
mov dword [esp + 0x24], eax
je 0x40db41
mov eax, 0x258
sub eax, edx
xor edx, edx
div dword [esp + 0x6c]
mov eax, edx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x20]
jmp 0x40db47
xor eax, eax
mov dword [esp + 0xc], eax
cmp edx, edi
jb 0x40dc6a
xor edx, edx
cmp dword [esp + 0x24], 0
je 0x40db6e
inc eax
mov dword [esp + 0xc], eax
cmp eax, 4
jne 0x40db6e
xor eax, eax
mov byte [ecx], 0x2c
mov dword [esp + 0xc], eax
inc ecx
jmp 0x40db51
mov al, byte [edx + esi]
inc edx
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0xc]
cmp edx, edi
jb 0x40db51
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
cmp eax, edx
jae 0x40dc38
mov esi, dword [esp + 0x24]
sub edx, eax
mov dword [esp + 0x20], edx
test esi, esi
jne 0x40dbf8
test edx, edx
je 0x40dbbd
test cl, 3
je 0x40dbb5
mov byte [ecx], 0x30
inc ecx
sub edx, 1
jne 0x40dba7
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
cmp edx, 4
jb 0x40dbf8
mov edi, dword [esp + 0x1c]
mov eax, 0x30303030
shr edx, 2
mov dword [esp + 0x3c], edx
shl edx, 2
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
nop
sub edx, 4
sub eax, 1
jne 0x40dbf0
test edx, edx
je 0x40dc38
mov eax, dword [esp + 0xc]
test esi, esi
je 0x40dc1b
inc eax
mov dword [esp + 0xc], eax
cmp eax, 4
jne 0x40dc1b
xor eax, eax
mov byte [esp + 0x5b], 0x2c
mov dword [esp + 0xc], eax
jmp 0x40dc21
dec edx
mov byte [esp + 0x5b], 0x30
mov al, byte [esp + 0x5b]
lea edi, [ecx + 1]
mov byte [ecx], al
mov ecx, edi
mov eax, dword [esp + 0xc]
test edx, edx
jne 0x40dc00
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0xa0]
mov edx, ecx
sub edx, eax
mov eax, dword [esp + 0x10]
add edx, 0x2ffffc0
mov dword [esp + 0xc], edx
test eax, eax
je 0x40dd0f
mov byte [ecx], 0x2e
inc ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], eax
jmp 0x40dd0f
xor edi, edi
nop dword [eax]
cmp dword [esp + 0x24], 0
je 0x40dc8d
inc eax
mov dword [esp + 0xc], eax
cmp eax, 4
jne 0x40dc8d
xor eax, eax
mov byte [ecx], 0x2c
mov dword [esp + 0xc], eax
inc ecx
jmp 0x40dc70
mov al, byte [edi + esi]
inc edi
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0xc]
cmp edi, edx
jb 0x40dc70
mov eax, ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, 0x2ffffc0
cmp dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
je 0x40dccf
mov byte [ecx], 0x2e
inc ecx
mov dword [esp + 0x1c], ecx
mov eax, edi
sub eax, edx
cmp eax, dword [esp + 0x10]
jbe 0x40dcdf
mov edi, dword [esp + 0x10]
add edi, edx
cmp dword [esp + 0x24], edi
jae 0x40dd03
mov edx, dword [esp + 0x24]
nop dword [eax]
mov al, byte [edx + esi]
inc edx
mov byte [ecx], al
inc ecx
cmp edx, edi
jb 0x40dcf0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, edx
sub ecx, edi
add ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test eax, 0x100
je 0x40dd89
mov edx, eax
mov byte [esp + 0x99], 0x20
shr edx, 0xa
mov esi, eax
not dl
shr esi, 0x18
and dl, 1
mov byte [esp + 0x98], dl
test esi, esi
je 0x40dd89
test eax, 0x800
movzx ecx, dl
mov eax, str._kMGT
mov edi, str._KMGT
cmovne eax, edi
inc dl
mov al, byte [eax + esi]
mov byte [esp + ecx + 0x99], al
mov eax, dword [esp + 0x14]
and eax, 0x1800
cmp eax, 0x800
jne 0x40dd82
movzx eax, dl
inc dl
mov byte [esp + eax + 0x99], 0x69
mov byte [esp + 0x98], dl
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xa0]
sub edi, eax
lea esi, [esp + 0xe0]
mov eax, dword [esp + 0x10]
sub edi, 0x40
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], esi
jmp 0x40e002
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x2a0]
xor edi, edi
and eax, 0x40
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x28], 0
lea edx, [esi - 8]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], ecx
ja 0x40de15
mov edi, dword [esp + 0xc]
cmp ecx, 0x5f5e100
jae 0x40de15
xorps xmm0, xmm0
movlpd qword [esp + 0x60], xmm0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
jmp 0x40deaa
mov eax, dword [esp + 0x20]
mov edx, 0x8461cefd
mul edx
mov edi, 0xabcc7711
mov ecx, 0x8461cefd
mov esi, edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
mul edi
mov dword [esp + 0x78], edx
mov edi, eax
mov eax, dword [esp + 0x28]
mul ecx
mov dword [esp + 0x70], edx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov edx, 0xabcc7711
mul edx
add ecx, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x70]
adc edx, 0
mov dword [esp + 0x20], eax
add edi, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0xc]
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [esp + 0x20]
adc eax, eax
add ecx, edx
mov edx, dword [esp + 0x28]
adc edx, eax
shrd ecx, edx, 0x1a
imul eax, ecx, 0x5f5e100
shr edx, 0x1a
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
sub ecx, eax
cmp dword [esp + 0x3c], 0
mov eax, dword [esp + 0x2c]
jne 0x40dede
mov eax, 0x51eb851f
sub esi, 2
mul ecx
shr edx, 5
imul eax, edx, 0x64
sub ecx, eax
mov ax, word [ecx*2 + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov ecx, edx
mov word [esi], ax
test ecx, ecx
jne 0x40deb5
mov dword [esp + 0x1c], esi
jmp 0x40df46
mov esi, eax
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x40df46
mov eax, edi
inc edi
mov dword [esp + 0xc], edi
cmp eax, 3
jne 0x40df03
xor edi, edi
mov ah, 0x2c
dec edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], edx
jmp 0x40df2b
mov eax, 0xcccccccd
mul ecx
mov ah, cl
shr edx, 3
mov al, dl
mov ecx, edx
shl dl, 2
add al, dl
mov edx, dword [esp + 0x2c]
add al, al
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
sub ah, al
add ah, 0x30
mov esi, dword [esp + 0x2c]
or edi, 0xffffffff
add esi, edi
mov dword [esp + 0x1c], esi
mov byte [esi], ah
mov edi, dword [esp + 0xc]
mov dword [esp + 0x2c], esi
test ecx, ecx
jne 0x40dee8
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x28]
je 0x40df88
mov ecx, dword [esp + 0x24]
cmp esi, ecx
je 0x40ddd1
nop dword [eax]
cmp dword [esp + 0x3c], 0
je 0x40df76
mov eax, edi
inc edi
cmp eax, 3
jne 0x40df76
xor edi, edi
mov al, 0x2c
dec ecx
jmp 0x40df78
mov al, 0x30
or edx, 0xffffffff
add esi, edx
mov byte [esi], al
cmp esi, ecx
jne 0x40df60
jmp 0x40ddc9
cmp byte [esi], 0x30
jne 0x40df9d
lea eax, [esp + 0x2a0]
cmp esi, eax
je 0x40df9d
inc esi
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
mov byte [esp + 0x98], 0
call fcn.0040cc90
lea edi, [esp + 0x2a0]
sub edi, esi
mov dword [esp + 0x28], edi
mov eax, edi
mov dword [esp + 0x2c], edi
jne 0x40dfe1
dec esi
mov edi, 1
mov dword [esp + 0x1c], esi
mov eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esi], 0x30
mov esi, dword [esp + 0x10]
lea edx, [eax + 0x3000000]
xor eax, eax
test esi, esi
cmovs esi, eax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
cmp eax, edi
jge 0x40e053
jmp 0x40e04f
mov byte [esp + 0x29f], cl
mov dword [esp + 0x14], 0
mov dword [esp + 0x4c], 0
xor al, al
lea esi, [esp + 0x29f]
xor edx, edx
mov byte [esp + 0x90], al
mov dword [esp + 0xc], edx
mov dword [esp + 0x48], edx
mov byte [esp + 0x98], dl
lea edi, [edx + 1]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
movsx eax, byte [esp + 0x98]
add eax, dword [esp + 0x54]
mov dl, byte [esp + 0x90]
movsx ecx, dl
add ecx, eax
mov eax, dword [esp + 0x4c]
add ecx, dword [esp + 0x10]
cmp eax, ecx
cmovl eax, ecx
sub eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
sub eax, edi
mov dword [esp + 0x10], eax
test cl, 1
jne 0x40e0b2
test cl, 0x10
je 0x40e0ab
cmp dword [esp + 0x4c], eax
cmovg eax, dword [esp + 0x4c]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x4c], ecx
jmp 0x40e0b6
and ecx, 0xffffffbf
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x18]
je 0x40e3e4
test byte [esp + 0x14], 1
jne 0x40e1c8
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x40e1c8
mov edx, dword [esp + 0x40]
nop dword [eax]
mov edi, eax
mov dword [esp + 0x24], edi
test edx, edx
je 0x40e104
mov eax, dword [esp + 0x38]
sub eax, ecx
add eax, 0x200
cmp dword [esp + 0x4c], eax
cmovg edi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], edi
sub eax, edi
mov dword [esp + 0x4c], eax
test edi, edi
je 0x40e126
nop
test cl, 3
je 0x40e11e
mov byte [ecx], 0x20
inc ecx
sub edi, 1
jne 0x40e110
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ecx
cmp edi, 4
jl 0x40e154
mov edx, edi
mov eax, 0x20202020
mov edi, dword [esp + 0x18]
and edx, 0xfffffffc
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
add ecx, edx
sub edi, edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x40]
test edi, edi
je 0x40e172
push edi
push 0x20
push ecx
call fcn.00468c40
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x40]
add ecx, edi
mov dword [esp + 0x18], ecx
test edx, edx
je 0x40e1b5
mov edi, dword [esp + 0x38]
mov eax, ecx
sub eax, edi
mov dword [esp + 0x50], eax
inc eax
cmp eax, 0x200
jl 0x40e1b5
mov eax, dword [esp + 0x50]
add dword [esp + 0x44], eax
push eax
push dword [esp + 0x60]
push edi
call edx
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x40e0e0
mov dl, byte [esp + 0x90]
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x91]
mov dword [esp + 0x3c], eax
test dl, dl
je 0x40e28b
nop
cmp dword [esp + 0x40], 0
movsx eax, dl
mov dword [esp + 0x20], eax
je 0x40e20e
mov eax, edi
mov edi, dword [esp + 0x20]
sub eax, ecx
add eax, 0x200
cmp edi, eax
cmovg edi, eax
mov eax, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], eax
sub dl, al
mov byte [esp + 0x90], dl
test eax, eax
je 0x40e23c
mov edx, dword [esp + 0x3c]
nop
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
sub dword [esp + 0x20], 1
jne 0x40e220
mov dword [esp + 0x3c], edx
mov dl, byte [esp + 0x90]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x40], 0
je 0x40e283
mov eax, ecx
sub eax, edi
mov dword [esp + 0x50], eax
inc eax
cmp eax, 0x200
jl 0x40e283
mov eax, dword [esp + 0x50]
add dword [esp + 0x44], eax
push eax
push dword [esp + 0x60]
push edi
call dword [esp + 0x4c]
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov dl, byte [esp + 0x90]
test dl, dl
jne 0x40e1e0
mov edx, dword [esp + 0xc]
mov ecx, edx
mov eax, dword [esp + 0x14]
shr ecx, 0x18
and eax, 0x40
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
je 0x40e2be
and edx, 0xffffff
inc ecx
add edx, dword [esp + 0x10]
mov eax, edx
xor edx, edx
div ecx
mov eax, dword [esp + 0x20]
sub eax, edx
jmp 0x40e2c0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x40e3dd
cmp dword [esp + 0x40], 0
mov edx, eax
mov dword [esp + 0xc], edx
je 0x40e2f9
mov eax, edi
sub eax, ecx
add eax, 0x200
cmp dword [esp + 0x10], eax
cmovg edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
sub eax, edx
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x10], eax
jne 0x40e350
test edx, edx
je 0x40e326
nop word [eax + eax]
test cl, 3
je 0x40e31e
mov byte [ecx], 0x30
inc ecx
sub edx, 1
jne 0x40e310
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], ecx
cmp edx, 4
jl 0x40e350
mov edi, dword [esp + 0x18]
and edx, 0xfffffffc
mov ecx, edx
mov eax, 0x30303030
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
add ecx, edx
sub dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
test edx, edx
je 0x40e38e
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x3c], 0
je 0x40e36e
mov eax, edi
inc edi
cmp eax, dword [esp + 0x20]
jne 0x40e36e
xor edi, edi
mov al, 0x2c
jmp 0x40e370
mov al, 0x30
mov byte [ecx], al
lea esi, [ecx + 1]
mov dword [esp + 0x50], esi
mov eax, esi
mov ecx, esi
sub edx, 1
jne 0x40e358
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
test edx, edx
je 0x40e3d1
mov eax, ecx
sub eax, edi
mov dword [esp + 0x50], eax
inc eax
cmp eax, 0x200
jl 0x40e3d1
mov eax, dword [esp + 0x50]
add dword [esp + 0x44], eax
push eax
push dword [esp + 0x60]
push edi
call edx
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x40e2d4
mov dl, byte [esp + 0x90]
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x91]
mov dword [esp + 0xc], eax
test dl, dl
je 0x40e4ab
nop dword [eax + eax]
cmp dword [esp + 0x40], 0
movsx eax, dl
mov dword [esp + 0x20], eax
je 0x40e42e
mov eax, edi
mov edi, dword [esp + 0x20]
sub eax, ecx
add eax, 0x200
cmp edi, eax
cmovg edi, eax
mov eax, edi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], eax
sub dl, al
mov byte [esp + 0x90], dl
test eax, eax
je 0x40e45c
mov edx, dword [esp + 0xc]
nop
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
sub dword [esp + 0x20], 1
jne 0x40e440
mov dword [esp + 0xc], edx
mov dl, byte [esp + 0x90]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x40], 0
je 0x40e4a3
mov eax, ecx
sub eax, edi
mov dword [esp + 0x50], eax
inc eax
cmp eax, 0x200
jl 0x40e4a3
mov eax, dword [esp + 0x50]
add dword [esp + 0x44], eax
push eax
push dword [esp + 0x60]
push edi
call dword [esp + 0x4c]
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov dl, byte [esp + 0x90]
test dl, dl
jne 0x40e400
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40e56a
cmp dword [esp + 0x40], 0
mov edx, eax
je 0x40e4d4
mov eax, edi
sub eax, ecx
add eax, 0x200
cmp dword [esp + 0x28], eax
cmovg edx, eax
mov eax, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x28], eax
cmp edx, 4
jl 0x40e507
mov edi, edx
shr edi, 2
mov eax, edi
neg eax
lea edx, [edx + eax*4]
nop dword [eax + eax]
mov eax, dword [esi]
add esi, 4
mov dword [ecx], eax
add ecx, 4
sub edi, 1
jne 0x40e4f0
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
test edx, edx
je 0x40e51f
nop dword [eax + eax]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x40e510
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x40]
test edx, edx
je 0x40e55e
mov eax, ecx
sub eax, edi
mov dword [esp + 0x50], eax
inc eax
cmp eax, 0x200
jl 0x40e55e
mov eax, dword [esp + 0x50]
add dword [esp + 0x44], eax
push eax
push dword [esp + 0x60]
push edi
call edx
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40e4b7
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40e647
mov edx, dword [esp + 0x40]
nop word [eax + eax]
mov esi, eax
test edx, edx
je 0x40e59a
mov eax, edi
sub eax, ecx
add eax, 0x200
cmp dword [esp + 0x54], eax
cmovg esi, eax
mov eax, dword [esp + 0x54]
sub eax, esi
mov dword [esp + 0x54], eax
test esi, esi
je 0x40e5b6
test cl, 3
je 0x40e5b2
mov byte [ecx], 0x30
inc ecx
sub esi, 1
jne 0x40e5a4
mov dword [esp + 0x18], ecx
cmp esi, 4
jl 0x40e5e0
mov edi, dword [esp + 0x18]
mov edx, esi
and edx, 0xfffffffc
mov eax, 0x30303030
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
add ecx, edx
sub esi, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
test esi, esi
je 0x40e5fe
push esi
push 0x30
push ecx
call fcn.00468c40
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x40]
add ecx, esi
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x38]
test edx, edx
je 0x40e63b
mov esi, ecx
sub esi, edi
lea eax, [esi + 1]
cmp eax, 0x200
jl 0x40e63b
add dword [esp + 0x44], esi
push esi
push dword [esp + 0x60]
push edi
call edx
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x40e580
cmp byte [esp + 0x98], 0
lea esi, [esp + 0x99]
mov dword [esp + 0xc], esi
je 0x40e6e8
cmp dword [esp + 0x40], 0
movsx edx, byte [esp + 0x98]
je 0x40e67d
mov eax, edi
sub eax, ecx
add eax, 0x200
cmp edx, eax
cmovg edx, eax
sub byte [esp + 0x98], dl
test edx, edx
je 0x40e69b
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x40e688
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x40]
test edx, edx
je 0x40e6da
mov eax, ecx
sub eax, edi
mov dword [esp + 0x50], eax
inc eax
cmp eax, 0x200
jl 0x40e6da
mov eax, dword [esp + 0x50]
add dword [esp + 0x44], eax
push eax
push dword [esp + 0x60]
push edi
call edx
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
cmp byte [esp + 0x98], 0
jne 0x40e660
test byte [esp + 0x14], 1
je 0x40e7b8
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x40e7b8
nop
cmp dword [esp + 0x40], 0
mov esi, edx
je 0x40e717
mov eax, edi
sub eax, ecx
add eax, 0x200
cmp edx, eax
cmovg esi, eax
sub edx, esi
mov dword [esp + 0x4c], edx
test esi, esi
je 0x40e733
test cl, 3
je 0x40e72f
mov byte [ecx], 0x20
inc ecx
sub esi, 1
jne 0x40e721
mov dword [esp + 0x18], ecx
cmp esi, 4
jl 0x40e759
mov edi, dword [esp + 0x18]
mov edx, esi
and edx, 0xfffffffc
mov eax, 0x20202020
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
add ecx, edx
sub esi, edx
mov dword [esp + 0x18], ecx
test esi, esi
je 0x40e773
push esi
push 0x20
push ecx
call fcn.00468c40
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, esi
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
test esi, esi
je 0x40e7ac
mov edx, ecx
sub edx, edi
lea eax, [edx + 1]
cmp eax, 0x200
jl 0x40e7ac
add dword [esp + 0x44], edx
push edx
push dword [esp + 0x60]
push edi
call esi
mov edi, eax
add esp, 0xc
mov dword [esp + 0x38], edi
mov ecx, edi
mov dword [esp + 0x18], ecx
test edi, edi
je 0x40e7fa
mov edx, dword [esp + 0x4c]
test edx, edx
jne 0x40e700
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
inc edx
mov ecx, dword [esp + 0x18]
jmp 0x40cd69
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x40e7d6
mov byte [ecx], dl
jmp 0x40e7fa
mov esi, ecx
sub esi, edi
lea eax, [esi + 0x1ff]
cmp eax, 0x200
jl 0x40e7fa
add dword [esp + 0x44], esi
push esi
push dword [esp + 0x60]
push edi
call edx
mov edi, eax
add esp, 0xc
mov ecx, edi
mov eax, dword [esp + 0x44]
sub ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
xor ecx, esp
call fcn.004672b4
mov esp, ebp
pop ebp
ret