Function at 0x401000
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x268
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0xa4]
not eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], esi
jmp 0x40104f
mov esi, eax
mov eax, edi
movzx eax, byte [edi]
mov dword [esp + 0x14], esi
mov byte [esi], al
inc esi
inc edi
mov eax, edi
test al, 3
mov dword [esp + 0x28], esi
je 0x401060
movzx eax, byte [edi]
jmp 0x40107e
mov eax, dword [edi]
mov edx, eax
not edx
and edx, 0x80808080
mov ecx, eax
xor ecx, 0x25252525
add ecx, 0xfefefeff
test ecx, edx
je 0x4010c1
cmp al, 0x25
je 0x401120
mov esi, dword [esp + 0x28]
test al, al
je 0x403658
cmp dword [ebp + 8], 0
je 0x40104b
mov ecx, esi
sub ecx, dword [esp + 0x14]
cmp ecx, 0x1ff
jl 0x40104b
add dword [esp + 0x44], ecx
push ecx
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x401040
jmp 0x40368c
mov ecx, dword [esp + 0x14]
sub ecx, esi
add ecx, 0x200
jmp 0x4010fe
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x28], edx
mov eax, dword [edi + 4]
add edi, 4
mov edx, eax
not edx
and edx, 0x80808080
mov esi, eax
xor esi, 0x25252525
add esi, 0xfefefeff
add ecx, 0xfffffffc
test esi, edx
jne 0x40107e
lea esi, [eax - 0x1010101]
test edx, esi
jne 0x401086
cmp dword [ebp + 8], 0
mov edx, dword [esp + 0x28]
je 0x4010d0
cmp ecx, 4
jge 0x4010d0
jmp 0x40107e
mov ecx, edi
add ecx, 2
xor ebx, ebx
jmp 0x401133
mov edx, 1
nop
nop
or ebx, edx
inc ecx
movzx eax, byte [ecx - 1]
lea esi, [eax - 0x20]
cmp esi, 0x3f
ja case.0x401144.33
mov edx, 2
jmp dword [esi*4 + 0x44d564]
mov edx, 4
jmp case.0x401144.43
mov edx, 0x400
jmp case.0x401144.43
mov edx, 0x100
test ebx, 0x100
je case.0x401144.43
mov edx, ebx
and edx, 0x800
add edx, 0x800
jmp case.0x401144.43
mov edx, 8
jmp case.0x401144.43
mov edx, 0x40
jmp case.0x401144.43
or ebx, 0x10
movzx eax, byte [ecx]
jmp 0x40118d
dec ecx
cmp al, 0x2a
mov esi, dword [esp + 0x28]
mov dword [esp + 4], ebx
jne 0x4011b1
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov dword [esp + 0x40], edx
add eax, 4
mov dword [esp + 0x20], eax
movzx eax, byte [ecx + 1]
inc ecx
jmp 0x4011ef
mov edx, eax
add dl, 0xd0
mov dword [esp + 0x40], 0
cmp dl, 9
ja 0x4011ef
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, al
lea edx, [ebx + ebx*4]
lea ebx, [eax + edx*2]
add ebx, 0xffffffd0
movzx eax, byte [ecx + 1]
inc ecx
mov edx, eax
add dl, 0xd0
cmp dl, 0xa
jb 0x4011d0
mov dword [esp + 0x40], ebx
mov dword [esp], 0xffffffff
cmp al, 0x2e
jne 0x40124e
movzx eax, byte [ecx + 1]
cmp al, 0x2a
jne 0x40121b
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov dword [esp], edx
add eax, 4
mov dword [esp + 0x20], eax
movzx eax, byte [ecx + 2]
add ecx, 2
jmp 0x40124e
inc ecx
mov edx, eax
add dl, 0xd0
mov dword [esp], 0
cmp dl, 9
ja 0x40124e
xor edi, edi
nop
movzx eax, al
lea edx, [edi + edi*4]
lea edi, [eax + edx*2]
add edi, 0xffffffd0
movzx eax, byte [ecx + 1]
inc ecx
mov edx, eax
add dl, 0xd0
cmp dl, 0xa
jb 0x401230
mov dword [esp], edi
movzx eax, al
add eax, 0xffffffb7
cmp eax, 0x31
ja case.0x401259.74
jmp dword [eax*4 + 0x44d664]
inc ecx
jmp case.0x401259.74
movzx edx, byte [ecx + 1]
cmp dl, 0x6c
jne 0x4012a1
or dword [esp + 4], 0x20
add ecx, 2
jmp case.0x401259.74
lea eax, [ecx + 1]
mov dword [esp + 0x50], eax
movzx edx, byte [ecx + 1]
cmp edx, 0x33
je 0x4012b6
cmp edx, 0x36
jne 0x4012cc
cmp byte [ecx + 2], 0x34
jne 0x4012bc
or dword [esp + 4], 0x20
jmp 0x4012c2
cmp byte [ecx + 1], 0x68
je 0x4012a4
inc ecx
jmp 0x4012a7
inc ecx
jmp 0x4012c8
add ecx, 2
mov eax, dword [esp + 4]
or eax, 0x200
mov dword [esp + 4], eax
jmp case.0x401259.74
cmp byte [ecx + 2], 0x32
je 0x4012c2
mov ecx, dword [esp + 0x50]
jmp case.0x401259.74
add ecx, 3
movzx edx, byte [ecx]
mov dword [esp + 0x50], ecx
movzx eax, dl
add eax, 0xffffffbf
cmp eax, 0x37
ja case.0x4012db.67
jmp dword [eax*4 + 0x44d72c]
test byte [esp + 4], 0x20
jne 0x401705
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 8], 0
cmp dl, 0x75
je 0x40200e
test ecx, ecx
mov esi, dword [esp]
jns 0x401ffa
neg ecx
mov edx, dword [esp + 4]
or edx, 0x80
jmp 0x402028
mov esi, str.0123456789ABCDEFXP
cmp dl, 0x45
je 0x401336
mov esi, str.0123456789abcdefxp
mov eax, dword [esp + 0x20]
fld qword [eax]
mov ecx, 6
mov eax, dword [esp]
cmp eax, 0xffffffff
je 0x40134b
mov ecx, eax
mov dword [esp + 0x24], ecx
mov eax, ecx
or eax, 0x80000000
sub esp, 0x18
mov dword [esp + 0x10], eax
fstp qword [esp + 8]
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x7c]
mov dword [esp], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
call fcn.004036b0
add esp, 0x18
test eax, eax
je 0x40138c
or dword [esp + 4], 0x80
add dword [esp + 0x20], 8
mov byte [esp + 0x2c], 0
mov byte [esp + 0x38], 0
mov al, 0x2d
cmp byte [esp + 4], 0
js 0x4013b6
mov al, 0x20
test byte [esp + 4], 4
jne 0x4013b6
mov al, 0x2b
test byte [esp + 4], 2
je 0x4013bf
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], al
mov edi, dword [esp + 0x34]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x10]
cmp edi, 0x7000
mov dword [esp + 0xc], eax
je 0x4029c3
movzx ecx, byte [eax]
mov byte [esp + 0xa4], cl
lea eax, [esp + 0xa5]
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x40141b
movzx ecx, byte [section..data]
mov edx, ecx
or dl, 0xe0
not cl
or cl, 0x1f
and cl, dl
not cl
mov byte [esp + 0xa5], cl
lea eax, [esp + 0xa6]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
lea edx, [eax - 1]
cmp edx, ebx
jbe 0x401430
lea eax, [ebx + 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp eax, 2
jb 0x4014f5
mov dword [esp + 8], esi
mov eax, ebx
cmp ebx, edx
jb 0x401449
mov ebx, edx
lea esi, [ebx - 1]
mov edx, 1
cmp esi, 7
jb 0x4014c8
mov dword [esp + 0x48], ebx
mov esi, ebx
and esi, 0xfffffff8
xor edx, edx
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp]
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx + edx + 1]
mov byte [ecx + edx], al
movzx eax, byte [ebx + edx + 2]
mov byte [ecx + edx + 1], al
movzx eax, byte [ebx + edx + 3]
mov byte [ecx + edx + 2], al
movzx eax, byte [ebx + edx + 4]
mov byte [ecx + edx + 3], al
movzx eax, byte [ebx + edx + 5]
mov byte [ecx + edx + 4], al
movzx eax, byte [ebx + edx + 6]
mov byte [ecx + edx + 5], al
movzx eax, byte [ebx + edx + 7]
mov byte [ecx + edx + 6], al
movzx eax, byte [ebx + edx + 8]
mov byte [ecx + edx + 7], al
add edx, 8
cmp esi, edx
jne 0x401470
add ecx, edx
mov dword [esp], ecx
inc edx
mov ebx, dword [esp + 0x48]
and ebx, 7
mov esi, dword [esp + 8]
je 0x4014f5
mov esi, dword [esp + 0xc]
add esi, edx
xor edx, edx
mov ecx, dword [esp]
nop
nop
nop
nop
movzx eax, byte [esi + edx]
mov byte [ecx + edx], al
inc edx
cmp ebx, edx
jne 0x4014e0
add ecx, edx
mov dword [esp], ecx
mov esi, dword [esp + 8]
movzx eax, byte [esi + 0xe]
mov byte [esp + 0x2d], al
test edi, edi
jle 0x401cc7
dec edi
mov byte [esp + 0x2e], 0x2b
mov esi, edi
jmp 0x401cd3
mov eax, str.0123456789ABCDEFXP
mov dword [esp + 0x48], edx
cmp dl, 0x41
je 0x401525
mov eax, str.0123456789abcdefxp
mov dword [esp + 8], eax
mov ecx, 6
mov eax, dword [esp]
cmp eax, 0xffffffff
mov edx, dword [esp + 4]
je 0x40153c
mov ecx, eax
mov dword [esp], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x401550
or edx, 0x80
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
mov al, 0x2d
test dl, dl
mov dword [esp + 4], edx
js 0x4016b8
mov al, 0x20
test dl, 4
jne 0x4016b8
mov al, 0x2b
test dl, 2
jne 0x4016b8
mov dword [esp + 0xc], 0
jmp 0x4016c2
mov dword [esp + 0x4c], str.0123456789ABCDEFXP
cmp dl, 0x42
je 0x40159c
mov dword [esp + 0x4c], str.0123456789abcdefxp
mov byte [esp + 0x38], 0
test byte [esp + 4], 8
je 0x4015be
cmp dl, 0x42
setne al
mov word [esp + 0x38], 0x3002
shl al, 5
or al, 0x42
mov byte [esp + 0x3a], al
mov dword [esp + 0x1c], 0x180
mov ecx, 1
test byte [esp + 4], 0x20
je 0x4017b8
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
mov esi, dword [eax + 4]
add eax, 8
mov dword [esp + 0x20], eax
jmp 0x4017c7
mov esi, str.0123456789ABCDEFXP
cmp dl, 0x47
je 0x4015fa
mov esi, str.0123456789abcdefxp
mov eax, dword [esp + 0x20]
fld qword [eax]
mov ecx, dword [esp]
cmp ecx, 1
mov eax, ecx
adc eax, 0
mov edi, 6
cmp ecx, 0xffffffff
je 0x401617
mov edi, eax
lea eax, [edi - 1]
or eax, 0x80000000
sub esp, 0x18
fstp qword [esp + 8]
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x7c]
mov dword [esp], ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
call fcn.004036b0
add esp, 0x18
test eax, eax
je 0x401666
mov ecx, dword [esp + 4]
mov eax, ecx
not eax
or eax, 0xffffff7f
add ecx, eax
add ecx, 0x81
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
jb 0x401670
mov ecx, edi
mov dword [esp + 8], esi
mov eax, ecx
cmp ecx, 2
jb 0x401749
mov ebx, dword [esp + 0x10]
mov ecx, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [ebx + eax - 1], 0x30
jne 0x401daa
mov esi, eax
lea edx, [ecx - 1]
dec esi
mov eax, esi
cmp esi, 2
jb 0x401dac
cmp ecx, 1
mov ecx, edx
jne 0x401690
jmp 0x401dac
mov byte [esp + 0x39], al
mov al, 1
mov dword [esp + 0xc], eax
mov esi, ecx
and esi, 0xfffff
sar ecx, 0x14
mov edx, ecx
not edx
or edx, 0x7ff
lea ebx, [ecx + edx]
inc ebx
test ebx, ebx
je 0x401b4c
mov eax, 0xffffffff
add edi, eax
mov eax, 0xfffff
adc esi, eax
lea ebx, [ecx + edx]
add ebx, 0xfffffc02
add edi, 1
adc esi, 0
jmp 0x401b5d
mov ecx, dword [esp + 0x20]
lea edi, [ecx + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp dl, 0x75
je 0x402017
test ecx, ecx
mov esi, dword [esp]
mov edx, ecx
jns 0x402000
neg eax
mov ecx, 0
sbb ecx, edx
mov edx, dword [esp + 4]
or edx, 0x80
mov dword [esp + 8], ecx
mov ecx, eax
mov dword [esp + 0x20], edi
jmp 0x402028
mov edx, edi
jmp 0x401dac
mov ecx, dword [esp + 4]
mov eax, ecx
xor eax, 0x10
or ecx, 0xffffffef
and ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], 8
mov dword [esp + 0x4c], str.0123456789ABCDEFXP
cmp dl, 0x58
je 0x40177e
mov dword [esp + 0x4c], str.0123456789abcdefxp
mov dword [esp + 0x1c], 0x440
mov byte [esp + 0x38], 0
mov ecx, 4
test byte [esp + 4], 8
je 0x4017ad
cmp dl, 0x58
setne al
mov word [esp + 0x38], 0x3002
shl al, 5
or al, 0x58
mov byte [esp + 0x3a], al
test byte [esp + 4], 0x20
jne 0x4015d6
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
add eax, 4
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x34], 0
mov byte [esp + 0x2c], 0
mov eax, edi
or eax, esi
jne 0x4017e9
mov byte [esp + 0x38], 0
cmp dword [esp], 0
je 0x401b2c
mov eax, 0xffffffff
shl eax, cl
not eax
and eax, edi
mov edx, dword [esp + 0x1c]
mov cl, dh
shrd edi, esi, cl
mov ecx, dword [esp + 0x4c]
movzx eax, byte [ecx + eax]
mov byte [esp + 0x263], al
mov cl, dh
shr esi, cl
mov dword [esp + 8], edx
test dh, 0x20
je 0x40181d
mov edi, esi
xor esi, esi
mov edx, dword [esp]
mov eax, edi
or eax, esi
mov dword [esp], edx
jne 0x401843
mov eax, 1
cmp edx, 2
jge 0x401843
lea ecx, [esp + 0x263]
mov dword [esp + 0xc], ecx
jmp 0x401933
mov dword [esp + 0x18], esi
lea eax, [esp + 0x263]
mov dword [esp + 0xc], eax
lea edx, [esp + 0x264]
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x24], edi
test byte [esp + 4], 0x40
jne 0x401880
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x4018c0
mov edi, dword [esp + 8]
lea ecx, [edi + 1]
mov dword [esp + 0x1c], ecx
mov eax, ecx
shr eax, 4
xor eax, ecx
mov esi, dword [esp + 0xc]
test al, 0xf
jne 0x4018c0
mov eax, 0xfffffffe
sub eax, edi
not eax
and eax, 0xfffffff0
mov dword [esp + 0x1c], eax
movzx eax, byte [0x450001]
xor al, 0xca
mov byte [edx - 2], al
add edx, 0xfffffffe
mov ecx, dword [esp + 0x1c]
mov esi, edx
nop
mov dword [esp + 0x48], esi
mov ebx, 0xffffffff
mov cl, ch
shl ebx, cl
not ebx
mov edi, dword [esp + 0x24]
and ebx, edi
mov eax, dword [esp + 0x1c]
mov cl, ah
mov esi, eax
mov edx, dword [esp + 0x18]
shrd edi, edx, cl
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax + ebx]
mov ebx, esi
mov esi, dword [esp + 0x48]
mov byte [esi - 1], al
mov cl, bh
shr edx, cl
test bh, 0x20
mov dword [esp + 8], ebx
je 0x401906
mov edi, edx
xor edx, edx
lea eax, [esi - 1]
mov dword [esp + 0xc], eax
mov eax, edi
mov dword [esp + 0x18], edx
or eax, edx
mov edx, esi
jne 0x401860
lea eax, [esp + 0x264]
sub eax, dword [esp + 0xc]
mov edx, esi
cmp eax, dword [esp]
jl 0x401860
mov edi, dword [esp + 8]
shl edi, 0x14
and edi, 0xf000000
add edi, eax
mov dword [esp + 8], edi
mov dword [esp + 0x1c], eax
xor esi, esi
jmp 0x4022d9
mov byte [esp + 0x38], 0
test byte [esp + 4], 8
je 0x401964
mov word [esp + 0x38], 0x3001
mov dword [esp + 0x1c], 0x330
mov dword [esp + 0x4c], str.0123456789ABCDEFXP
mov ecx, 3
test byte [esp + 4], 0x20
je 0x4017b8
jmp 0x4015d6
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov edx, str.null
test eax, eax
je 0x40199a
mov edx, eax
mov eax, dword [esp]
mov ecx, eax
test eax, eax
jns 0x4019a8
mov ecx, 0xffffffff
test dl, 3
mov dword [esp + 0xc], edx
je 0x402690
lea edi, [ecx + edx]
test eax, eax
je 0x40299e
cmp byte [edx], 0
je 0x40291e
mov dword [esp + 0x18], ecx
lea eax, [ecx - 1]
lea ecx, [edx + 1]
mov esi, ecx
test cl, 3
je 0x402937
test eax, eax
je 0x40299e
cmp byte [esi], 0
je 0x40363e
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
lea ecx, [edx + 2]
mov esi, ecx
test cl, 3
je 0x402937
test eax, eax
je 0x40299e
cmp byte [esi], 0
je 0x40363e
mov eax, dword [esp + 0x18]
add eax, 0xfffffffd
lea ecx, [edx + 3]
mov esi, ecx
test cl, 3
je 0x402937
test eax, eax
je 0x40299e
cmp byte [esi], 0
je 0x40363e
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffc
lea eax, [edx + 4]
test al, 3
je 0x40293b
test ecx, ecx
je 0x40299a
jmp 0x402994
mov byte [esp + 0x263], dl
mov dword [esp + 0x1c], 1
mov byte [esp + 0x38], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x263]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
xor esi, esi
xor edx, edx
mov dword [esp + 0x40], 0
jmp 0x4029c7
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx]
add ecx, 4
mov dword [esp + 0x20], ecx
mov byte [esp + 0x263], al
mov dword [esp + 0x1c], 1
mov byte [esp + 0x38], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x263]
mov dword [esp + 0xc], eax
jmp 0x4029c3
mov eax, dword [esp + 0x20]
fld qword [eax]
add eax, 8
mov dword [esp + 0x20], eax
test dword [esp + 4], 0x100
jne 0x4021f4
jmp 0x402366
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x14]
add ecx, esi
mov dword [eax], ecx
add edx, 4
mov dword [esp + 0x20], edx
jmp 0x4034b0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x264]
mov dword [esp + 0xc], eax
jmp 0x4029c3
xor ebx, ebx
mov ecx, edi
or ecx, esi
je 0x401b59
mov ebx, 0xfffffc02
mov dword [esp + 0x34], ebx
mov eax, dword [esp]
shld esi, edi, 8
shl edi, 8
cmp eax, 0xe
mov dword [esp + 0x24], ebx
jg 0x401bc1
mov edx, eax
and edx, 4
mov ebx, eax
mov ecx, eax
or ecx, 4
imul ecx, edx
xor edx, 4
and ebx, 0xfb
imul ebx, edx
add ecx, ebx
xor ebx, ebx
mov eax, 0x8000000
shrd ebx, eax, cl
mov edx, 0x8000000
shr edx, cl
test cl, 0x20
je 0x401ba7
mov ebx, edx
xor edx, edx
mov ecx, edi
and ecx, ebx
xor edi, ebx
mov ebx, esi
and ebx, edx
xor esi, edx
shld ebx, ecx, 1
add ecx, ecx
add edi, ecx
adc esi, ebx
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
movzx ecx, dl
lea eax, [esp + 0x38]
mov word [ecx + eax + 1], 0x7830
or dl, 2
mov byte [esp + 0x38], dl
mov ecx, esi
shr ecx, 0x1c
mov eax, dword [esp + 8]
movzx ecx, byte [eax + ecx]
mov byte [esp + 0xa4], cl
cmp dword [esp], 0
je 0x401caa
movzx ecx, byte [section..data]
xor cl, 0x1f
mov byte [esp + 0xa5], cl
mov ecx, dword [esp]
lea eax, [esp + 0xa6]
mov dword [esp + 0x10], eax
mov edx, ecx
cmp ecx, 0xd
jb 0x401c23
mov edx, 0xd
mov eax, ecx
sub eax, edx
mov dword [esp + 0x18], eax
jg 0x401c35
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edx
and edx, 3
je 0x401e07
xor ebx, ebx
mov ecx, edi
mov edi, dword [esp + 8]
nop
nop
nop
nop
nop
nop
mov eax, esi
shr eax, 0x18
and eax, 0xf
movzx eax, byte [edi + eax]
shld esi, ecx, 4
mov byte [esp + ebx + 0xa6], al
shl ecx, 4
inc ebx
cmp edx, ebx
jne 0x401c50
lea eax, [esp + 0xa6]
lea edx, [eax + ebx]
sub dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x24]
mov edi, ecx
mov ecx, dword [esp]
cmp ecx, 4
jae 0x401e17
mov dword [esp], edx
lea eax, [esp + 0xa6]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
jmp 0x401e90
lea eax, [esp + 0xa5]
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 8], eax
mov dword [esp], eax
mov eax, dword [esp + 0x48]
jmp 0x401e90
mov byte [esp + 0x2e], 0x2d
mov esi, 1
sub esi, edi
cmp esi, 0x64
mov edi, 4
sbb edi, 0xffffffff
mov eax, esi
mov ecx, 0xcccccccd
mul ecx
shr edx, 2
and edx, 0xfffffffe
lea eax, [edx + edx*4]
mov dword [esp + 0xc], eax
mov ebx, esi
mov eax, esi
mov ecx, 0x66666667
imul ecx
mov ecx, edx
mov eax, edx
shr eax, 0x1f
sar ecx, 2
add ecx, eax
mov eax, ecx
mov edx, 0x66666667
imul edx
sub ebx, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
sar edx, 2
add edx, eax
add edx, edx
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
or bl, 0x30
mov edx, edi
mov byte [esp + 0x2c], dl
mov byte [esp + edi + 0x2c], bl
add al, 0x30
mov byte [esp + edi + 0x2b], al
cmp esi, 0x64
jb 0x401d7f
mov eax, esi
mov ecx, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, edx
shr eax, 0x1f
sar ecx, 5
add ecx, eax
mov eax, ecx
mov edx, 0x66666667
imul edx
mov eax, edx
shr eax, 0x1f
shr edx, 2
add edx, eax
add edx, edx
lea eax, [edx + edx*4]
mov edx, ecx
sub edx, eax
add dl, 0x30
lea eax, [esp + 0x2c]
mov byte [edi + eax - 2], dl
mov esi, dword [esp + 0x18]
lea eax, [esi - 1]
mov ebx, dword [esp + 0x24]
mov edx, ebx
not edx
and edx, eax
neg esi
and esi, ebx
sub esi, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 8], 0x3000001
mov edx, dword [esp]
jmp 0x4028fc
mov edx, ecx
add dword [esp + 0x20], 8
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x34]
cmp ecx, 0xfffffffd
jl 0x401ddb
cmp ecx, edi
jg 0x401ddb
test ecx, ecx
jle 0x401feb
mov esi, eax
sub esi, ecx
jg 0x4023ab
xor esi, esi
jmp 0x4023ab
cmp edx, eax
jle 0x401ded
dec eax
mov dword [esp + 0x24], eax
mov esi, dword [esp + 8]
jmp 0x401391
mov dword [esp + 0x24], 0
sub edx, 1
jb 0x401dfe
mov dword [esp + 0x24], edx
mov esi, dword [esp + 8]
jmp 0x401391
lea edx, [esp + 0xa6]
cmp ecx, 4
jb 0x401c8f
mov ebx, esi
mov eax, dword [esp + 0xc]
nop
nop
nop
mov dword [esp + 0xc], eax
mov eax, esi
shr eax, 0x18
and eax, 0xf
mov ecx, dword [esp + 8]
movzx eax, byte [ecx + eax]
mov byte [edx], al
mov eax, esi
shr eax, 0x14
and eax, 0xf
movzx eax, byte [ecx + eax]
mov byte [edx + 1], al
mov eax, esi
shr eax, 0x10
and eax, 0xf
movzx eax, byte [ecx + eax]
mov byte [edx + 2], al
shld ebx, edi, 0x10
shl edi, 0x10
shr esi, 0xc
and esi, 0xf
movzx eax, byte [ecx + esi]
mov byte [edx + 3], al
mov eax, dword [esp + 0xc]
add edx, 4
mov esi, ebx
add eax, 0xfffffffc
jne 0x401e20
mov dword [esp], edx
lea eax, [esp + 0xa6]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x24]
cmp al, 0x41
setne al
shl al, 5
or al, 0x50
mov byte [esp + 0x2d], al
test ebx, ebx
js 0x401ec6
mov byte [esp + 0x2e], 0x2b
cmp ebx, 0x3e7
jg 0x401ed5
cmp ebx, 0x63
jle 0x401fcb
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], 5
jmp 0x401ee1
mov byte [esp + 0x2e], 0x2d
neg ebx
cmp ebx, 0x3e7
jle 0x401eaf
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], 6
mov dword [esp + 0x24], 0
mov eax, ebx
mov ecx, 0xcccccccd
mul ecx
shr edx, 2
and edx, 0xfffffffe
lea esi, [edx + edx*4]
mov eax, ebx
mov edi, 0x66666667
imul edi
mov ecx, edx
mov eax, edx
shr eax, 0x1f
sar ecx, 2
add ecx, eax
mov eax, ecx
imul edi
mov edi, ebx
mov eax, ebx
sub eax, esi
mov ebx, dword [esp + 0xc]
mov byte [esp + 0x2c], bl
or al, 0x30
mov byte [esp + ebx + 0x2c], al
mov eax, edx
shr eax, 0x1f
sar edx, 2
add edx, eax
add edx, edx
lea eax, [edx + edx*4]
sub ecx, eax
add cl, 0x30
mov byte [esp + ebx + 0x2b], cl
cmp byte [esp + 0x24], 0
mov ecx, 0x51eb851f
mov esi, dword [esp + 0x18]
jne 0x4027bc
mov eax, edi
imul ecx
mov ecx, edx
mov eax, edx
shr eax, 0x1f
sar ecx, 5
add ecx, eax
mov eax, ecx
mov edx, 0x66666667
imul edx
mov eax, edx
shr eax, 0x1f
sar edx, 2
add edx, eax
add edx, edx
lea eax, [edx + edx*4]
sub ecx, eax
add cl, 0x30
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov byte [edx + eax - 2], cl
cmp edi, 0x3e8
jl 0x4027bc
mov eax, edi
mov ecx, 0x10624dd3
mul ecx
mov ecx, edx
shr ecx, 6
mov eax, ecx
mov edx, 0x1999999a
mul edx
add edx, edx
lea eax, [edx + edx*4]
sub ecx, eax
or cl, 0x30
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov byte [edx + eax - 3], cl
jmp 0x4027bc
cmp ebx, 9
jle 0x402796
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], 4
mov al, 1
mov dword [esp + 0x24], eax
jmp 0x401ee9
cmp edx, eax
jl 0x401ff1
mov edx, eax
sub edx, ecx
mov esi, edx
jmp 0x4023ab
mov edx, dword [esp + 4]
jmp 0x402028
mov dword [esp + 8], edx
mov dword [esp + 0x20], edi
mov edx, dword [esp + 4]
jmp 0x402026
mov edx, dword [esp + 4]
mov esi, dword [esp]
jmp 0x402028
mov dword [esp + 8], ecx
mov dword [esp + 0x20], edi
mov edx, dword [esp + 4]
mov esi, dword [esp]
mov ecx, eax
mov dword [esp + 4], edx
test edx, 0x100
jne 0x4021c0
mov dword [esp + 0x24], ecx
movzx ecx, byte [0x450001]
mov eax, ecx
or al, 0x35
mov edx, ecx
not dl
or dl, 0xca
and dl, al
not dl
mov byte [esp + 0x4c], dl
mov eax, ecx
add al, cl
and al, 0x94
sub cl, al
add cl, 0xca
mov byte [esp + 0x18], cl
mov esi, 0x200
xor edi, edi
nop
nop
nop
nop
mov ecx, dword [esp + 0x24]
cmp ecx, 0x5f5e100
mov edx, dword [esp + 8]
mov eax, edx
sbb eax, 0
mov dword [esp + 0x48], edi
jb 0x4020b0
push 0
push 0x5f5e100
push edx
push ecx
mov edi, ecx
call fcn.0040c480
mov dword [esp + 8], edx
mov edx, edi
imul ecx, eax, 0x5f5e100
sub edx, ecx
mov dword [esp + 0x24], eax
jmp 0x4020c2
mov dword [esp + 8], 0
mov edx, ecx
mov dword [esp + 0x24], 0
lea eax, [esp + 0x5c]
add eax, esi
mov dword [esp + 0xc], eax
test byte [esp + 4], 0x40
jne 0x402110
mov edi, 0x51eb851f
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
mov ecx, edx
mul edi
shr edx, 5
imul eax, edx, 0x64
mov ebx, ecx
sub ebx, eax
movzx eax, word [ebx + ebx + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov word [esp + esi + 0x62], ax
add esi, 0xfffffffe
cmp ecx, 0x64
jae 0x4020e0
mov edi, dword [esp + 0x48]
jmp 0x402170
test edx, edx
mov edi, dword [esp + 0x48]
jne 0x402143
jmp 0x402170
inc edi
mov eax, edx
mov ecx, edx
mov edx, 0xcccccccd
mul edx
shr edx, 3
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub ecx, eax
or cl, 0x30
mov byte [esp + esi + 0x63], cl
dec esi
test edx, edx
je 0x402170
test byte [esp + 4], 0x40
je 0x402121
cmp edi, 3
jne 0x402120
movzx eax, byte [esp + 0x4c]
mov byte [esp + esi + 0x63], al
dec esi
dec dword [esp + 0xc]
xor edi, edi
test edx, edx
jne 0x402143
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x24]
or eax, dword [esp + 8]
je 0x40223f
lea eax, [esp + esi]
add eax, 0x64
mov ecx, dword [esp + 0xc]
jmp 0x40219d
inc edi
mov byte [esp + esi + 0x63], 0x30
dec esi
lea eax, [esp + esi]
add eax, 0x64
cmp eax, ecx
je 0x402070
test byte [esp + 4], 0x40
je 0x402191
cmp edi, 3
jne 0x402190
movzx eax, byte [esp + 0x18]
mov byte [esp + esi + 0x63], al
dec esi
dec ecx
xor edi, edi
jmp 0x402197
mov eax, 1
cmp esi, 0xffffffff
je 0x4021cc
mov eax, esi
xor edx, edx
mov esi, ecx
cmp ecx, 0x400
mov ecx, dword [esp + 8]
sbb ecx, 0
jb 0x4021e1
mov edx, eax
mov dword [esp], edx
mov dword [esp + 0x58], esi
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
fild qword [esp + 0x58]
xor eax, eax
mov ecx, dword [esp + 4]
test ecx, 0x800
sete al
fld qword [eax*8 + 0x44d550]
cmp ecx, 0x3ffffff
ja 0x4022b3
fld st(0)
fchs
fxch st(1)
fucom st(2)
fnstsw ax
sahf
jbe 0x4022e1
fxch st(2)
fucom st(1)
fnstsw ax
sahf
fxch st(2)
jbe 0x4022e1
fstp st(0)
fstp st(0)
jmp 0x402366
cmp byte [esp + esi + 0x64], 0x30
sete al
cmp esi, 0x200
setne cl
mov byte [esp + 0x2c], 0
mov byte [esp + 0x38], 0
mov dl, 0x2d
cmp byte [esp + 4], 0
js 0x402275
mov dl, 0x20
test byte [esp + 4], 4
jne 0x402275
mov dl, 0x2b
test byte [esp + 4], 2
je 0x40227e
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], dl
and cl, al
movzx eax, cl
add esi, eax
lea eax, [esp + esi]
add eax, 0x64
lea edx, [esi - 0x200]
neg edx
mov dword [esp + 0x1c], edx
cmp esi, 0x200
jne 0x4022ba
mov byte [eax - 1], 0x30
dec eax
mov dword [esp + 0x1c], 1
mov ecx, 1
jmp 0x4022bc
fstp st(0)
jmp 0x402366
mov ecx, edx
mov dword [esp + 0xc], eax
xor esi, esi
cmp dword [esp], 0
jg 0x4022cf
mov dword [esp], 0
add ecx, 0x3000000
mov dword [esp + 8], ecx
mov edx, dword [esp]
jmp 0x4029c7
fdiv st(2), st(0)
mov eax, dword [esp + 4]
lea ecx, [eax + 0x1000000]
cmp eax, 0x2ffffff
ja 0x40235e
fucom st(2)
fnstsw ax
sahf
jbe 0x402306
fxch st(2)
fucom st(1)
fnstsw ax
sahf
fxch st(2)
ja 0x40235e
fdiv st(2), st(0)
mov eax, dword [esp + 4]
lea ecx, [eax + 0x2000000]
cmp eax, 0x1ffffff
ja 0x40235e
fucom st(2)
fnstsw ax
sahf
jbe 0x40232b
fxch st(2)
fucom st(1)
fnstsw ax
sahf
fxch st(2)
ja 0x40235e
fdiv st(2), st(0)
mov eax, dword [esp + 4]
lea ecx, [eax + 0x3000000]
cmp eax, 0xffffff
ja 0x40235e
fucom st(2)
fnstsw ax
sahf
jbe 0x403647
fxch st(2)
fucom st(1)
fstp st(1)
fnstsw ax
sahf
fldz
fxch st(1)
fxch st(2)
jbe 0x403647
fstp st(0)
fstp st(0)
mov dword [esp + 4], ecx
mov esi, 6
mov eax, dword [esp]
cmp eax, 0xffffffff
je 0x402375
mov esi, eax
sub esp, 0x18
fstp qword [esp + 8]
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
call fcn.004036b0
add esp, 0x18
test eax, eax
je 0x4023ab
or dword [esp + 4], 0x80
mov byte [esp + 0x2c], 0
mov byte [esp + 0x38], 0
mov al, 0x2d
cmp byte [esp + 4], 0
js 0x4023d0
mov al, 0x20
test byte [esp + 4], 4
jne 0x4023d0
mov al, 0x2b
test byte [esp + 4], 2
je 0x4023d9
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], al
mov ecx, dword [esp + 0x34]
cmp ecx, 0x7000
jne 0x4023fa
mov dword [esp + 8], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
jmp 0x4029c3
test ecx, ecx
mov eax, esi
mov dword [esp + 0x18], esi
jle 0x40247e
xor edi, edi
mov ebx, dword [esp + 4]
test bl, 0x40
je 0x402426
mov edi, 0x258
sub edi, ecx
mov eax, edi
mov edx, 0xaaaaaaab
mul edx
shr edx, 1
lea eax, [edx + edx*2]
sub edi, eax
cmp ecx, dword [esp + 0x1c]
jae 0x402505
xor ecx, ecx
lea eax, [esp + 0xa4]
jmp 0x40245c
mov esi, eax
mov eax, dword [esp + 0x10]
movzx edx, byte [eax + ecx]
lea eax, [esi + 1]
mov byte [esi], dl
inc ecx
mov edx, dword [esp + 0x34]
cmp ecx, edx
jae 0x402561
test bl, 0x40
je 0x402440
inc edi
cmp edi, 4
jne 0x402440
mov edi, ebx
and edi, 0x40
shr edi, 6
movzx edx, byte [0x450001]
xor dl, 0xca
mov byte [eax], dl
inc eax
jmp 0x402440
mov byte [esp + 0xa4], 0x30
lea edx, [esp + 0xa5]
test esi, esi
je 0x4024b3
movzx eax, byte [section..data]
mov edx, eax
or dl, 0xe0
not al
or al, 0x1f
and al, dl
not al
mov byte [esp + 0xa5], al
lea edx, [esp + 0xa6]
neg ecx
mov edi, esi
cmp esi, ecx
jl 0x4024bd
mov edi, ecx
test edi, edi
je 0x402697
mov eax, edx
and eax, 3
je 0x402697
mov esi, edx
not esi
and esi, 3
lea ebx, [edi - 1]
cmp esi, ebx
jb 0x4024e0
mov esi, ebx
lea eax, [esi + 1]
push eax
push 0x30
push edx
mov dword [esp + 0xc], edx
call fcn.0040c570
mov edx, dword [esp + 0xc]
add esp, 0xc
add edx, esi
inc edx
sub ebx, esi
mov esi, dword [esp + 0x18]
jmp 0x402699
xor eax, eax
mov esi, 0xffffffff
mov ebx, 1
lea edx, [esp + 0xa4]
jmp 0x40253b
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + ebx - 1]
mov byte [edx], cl
mov ecx, edx
inc edx
inc eax
dec esi
inc ebx
cmp eax, dword [esp + 0x1c]
jae 0x4025fc
test byte [esp + 4], 0x40
je 0x402520
inc edi
cmp edi, 4
jne 0x402520
mov edi, dword [esp + 4]
and edi, 0x40
shr edi, 6
movzx ecx, byte [0x450001]
xor cl, 0xca
mov byte [edx], cl
inc edx
jmp 0x402520
mov dword [esp], eax
cmp dword [esp + 0x18], 0
je 0x40258b
movzx edx, byte [section..data]
mov dh, dl
add dh, dl
and dh, 0x3e
sub dl, dh
add dl, 0x1f
mov byte [esi + 1], dl
add esi, 2
mov edx, dword [esp + 0x34]
mov dword [esp], esi
mov edi, dword [esp + 0x1c]
mov ebx, edi
sub ebx, edx
cmp ebx, dword [esp + 0x18]
jbe 0x4025a4
mov esi, dword [esp + 0x18]
lea edi, [edx + esi]
mov dword [esp + 0x1c], edi
cmp ecx, edi
jae 0x4025cb
mov esi, dword [esp]
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + ecx]
mov byte [esi], dl
inc esi
inc ecx
mov edi, dword [esp + 0x1c]
cmp ecx, edi
jb 0x4025b0
mov dword [esp], esi
mov edx, dword [esp + 0x34]
mov esi, eax
and esi, dword [esp + 0x54]
not eax
lea ecx, [esp + 0xa4]
and eax, ecx
sub esi, eax
mov eax, dword [esp + 0x18]
sub eax, edi
add eax, edx
mov dword [esp + 0x18], eax
add esi, 0x3000000
mov dword [esp + 8], esi
mov edx, dword [esp]
jmp 0x402868
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
sub ecx, eax
mov dword [esp + 8], ecx
jbe 0x40275d
test byte [esp + 4], 0x40
jne 0x402922
mov ecx, dword [esp + 0xc]
cmp ecx, eax
je 0x4035d9
mov eax, edx
and eax, 3
je 0x4035d9
mov eax, ecx
mov ecx, 2
sub ecx, dword [esp]
and ecx, 3
sub eax, ebx
mov dword [esp + 8], ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
mov ecx, dword [esp + 8]
jb 0x402656
mov ecx, eax
mov dword [esp + 8], ecx
lea eax, [ecx + 1]
push eax
push 0x30
push edx
call fcn.0040c570
add esp, 0xc
mov ecx, dword [esp + 0xc]
add esi, ecx
mov eax, dword [esp + 0x24]
cmp esi, eax
jb 0x402679
mov esi, eax
mov eax, dword [esp]
mov edx, dword [esp + 8]
add edx, eax
add edx, 2
sub ecx, esi
sub ecx, ebx
mov ebx, ecx
jmp 0x4035dd
mov eax, edx
jmp 0x40293b
mov ebx, edi
cmp ebx, 4
jl 0x4026da
mov eax, ebx
cmp ebx, 7
jl 0x4026aa
mov eax, 7
neg eax
lea esi, [ebx + eax]
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + 4]
push eax
push 0x30
push edx
mov dword [esp + 0xc], edx
call fcn.0040c570
mov edx, dword [esp + 0xc]
add esp, 0xc
add edx, esi
add edx, 4
sub ebx, esi
add ebx, 0xfffffffc
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x4026f4
push ebx
push 0x30
push edx
mov dword [esp + 0xc], edx
call fcn.0040c570
mov edx, dword [esp + 0xc]
add esp, 0xc
add edx, ebx
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edi]
cmp ecx, esi
jle 0x402707
mov eax, esi
sub eax, edi
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0xc], eax
je 0x402858
mov ebx, esi
cmp esi, ecx
jl 0x40271b
mov ebx, ecx
mov ecx, eax
and ecx, 3
je 0x4027fa
mov dword [esp + 8], ebx
xor esi, esi
nop
nop
nop
nop
mov ebx, dword [esp + 0x10]
mov eax, edx
lea edx, [ebx + 1]
mov dword [esp + 0x10], edx
movzx edx, byte [ebx]
mov byte [eax + esi], dl
mov edx, eax
inc esi
cmp ecx, esi
jne 0x402730
add edx, esi
mov eax, edx
mov ecx, dword [esp + 0xc]
sub ecx, esi
mov ebx, dword [esp + 8]
jmp 0x4027fe
mov ecx, dword [esp + 0x18]
mov esi, edx
lea eax, [esp + 0xa4]
sub edx, eax
add edx, 0x3000000
mov dword [esp + 8], edx
test ecx, ecx
je 0x4027ee
movzx eax, byte [section..data]
mov ecx, eax
add cl, al
and cl, 0x3e
sub al, cl
add al, 0x1f
mov byte [esi], al
inc esi
mov edx, esi
jmp 0x402868
mov eax, ebx
mov ecx, 0x66666667
imul ecx
mov byte [esp + 0x2c], 3
mov eax, edx
shr eax, 0x1f
shr edx, 2
add edx, eax
add edx, edx
lea eax, [edx + edx*4]
sub ebx, eax
add bl, 0x30
mov byte [esp + 0x2f], bl
add dword [esp + 0x20], 8
mov ecx, dword [esp]
mov eax, ecx
sub eax, dword [esp + 8]
mov dword [esp + 0x34], eax
lea eax, [esp + 0xa4]
sub ecx, eax
mov dword [esp + 0x1c], ecx
xor edx, edx
mov dword [esp + 8], 0x3000001
mov dword [esp + 0xc], eax
jmp 0x4029c7
mov dword [esp + 0x18], 0
mov edx, esi
jmp 0x402868
mov ecx, eax
mov eax, edx
mov edx, edi
sub edx, ebx
cmp edx, 0xfffffffc
mov edx, eax
ja 0x402858
mov eax, edx
mov edx, dword [esp + 0x10]
lea esi, [edx + 1]
mov dword [esp + 0x10], esi
movzx edx, byte [edx]
mov byte [eax], dl
mov edx, dword [esp + 0x10]
lea esi, [edx + 1]
mov dword [esp + 0x10], esi
movzx edx, byte [edx]
mov byte [eax + 1], dl
mov edx, dword [esp + 0x10]
lea esi, [edx + 1]
mov dword [esp + 0x10], esi
movzx edx, byte [edx]
mov byte [eax + 2], dl
mov edx, dword [esp + 0x10]
lea esi, [edx + 1]
mov dword [esp + 0x10], esi
movzx edx, byte [edx]
mov byte [eax + 3], dl
mov edx, eax
add edx, 4
add ecx, 0xfffffffc
jne 0x402809
add edi, dword [esp + 0xc]
sub dword [esp + 0x18], edi
mov dword [esp + 8], 0x3000001
mov esi, dword [esp + 4]
test esi, 0x100
je 0x40288d
mov eax, esi
and eax, 0x400
sete byte [esp + 0x2c]
mov byte [esp + 0x2d], 0x20
cmp esi, 0x1000000
jae 0x402893
mov esi, dword [esp + 0x18]
jmp 0x4028fc
mov dword [esp], edx
mov edx, esi
shr edx, 0x18
mov ecx, eax
shr ecx, 0xa
test esi, 0x800
jne 0x4028c9
movzx edx, byte [edx + str._kMGT]
mov esi, eax
shr esi, 9
or esi, ecx
xor esi, 2
mov byte [esp + esi + 0x2c], dl
cmp eax, 1
mov eax, 0
adc al, 1
jmp 0x4028f1
movzx edx, byte [edx + str._KMGT]
neg ecx
mov byte [esp + ecx + 0x2e], dl
cmp eax, 1
mov eax, 0
adc al, 1
test esi, 0x1000
jne 0x4028f1
movzx eax, al
mov byte [esp + eax + 0x2d], 0x69
inc eax
mov esi, dword [esp + 0x18]
mov edx, dword [esp]
mov byte [esp + 0x2c], al
mov eax, edx
lea ecx, [esp + 0xa4]
xor eax, ecx
and edx, dword [esp + 0x54]
add edx, edx
sub edx, eax
mov dword [esp + 0x1c], edx
xor edx, edx
mov dword [esp + 0xc], ecx
jmp 0x4029c7
mov edi, edx
jmp 0x40299e
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x40361a
jmp 0x402761
mov ecx, eax
mov eax, esi
mov dword [esp + 0x18], ecx
mov esi, ecx
mov dword [esp + 8], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, eax
mov ecx, esi
cmp esi, 4
jb 0x40297b
mov edx, dword [edi]
mov eax, edx
not eax
add edx, 0xfefefeff
and edx, eax
lea eax, [edi + 4]
lea esi, [ecx - 4]
test edx, 0x80808080
mov edx, dword [esp + 0xc]
je 0x402950
jmp 0x40297f
test ecx, ecx
je 0x40299e
mov eax, dword [esp + 8]
add eax, dword [esp + 0x18]
xor edx, edx
cmp byte [edi + edx], 0
je 0x402998
inc edx
cmp ecx, edx
jne 0x402989
mov edi, eax
jmp 0x40299a
add edi, edx
mov edx, dword [esp + 0xc]
add dword [esp + 0x20], 4
sub edi, edx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x38], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 8], 0
xor esi, esi
xor edx, edx
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
jg 0x4029d5
mov edx, ecx
movsx eax, byte [esp + 0x38]
mov edi, edx
movsx esi, byte [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov dword [esp], edi
add edx, edi
add edx, eax
add edx, esi
mov esi, dword [esp + 0x40]
cmp esi, edx
jg 0x4029f8
mov esi, edx
sub esi, edx
mov edx, esi
sub dword [esp], ecx
mov ecx, dword [esp + 4]
test cl, 1
jne 0x402a20
test cl, 0x10
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
jne 0x402a2c
and ecx, 0xffffffae
mov dword [esp + 4], ecx
mov ecx, edx
jmp 0x402a3a
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, dword [esp + 0x14]
jmp 0x402a3a
mov ecx, dword [esp]
cmp edx, ecx
jg 0x402a35
mov edx, ecx
mov dword [esp], edx
xor ecx, ecx
mov dword [esp + 0x40], ecx
add ecx, dword [esp]
mov edx, dword [esp + 0xc]
je 0x402f2c
test byte [esp + 4], 1
jne 0x402b9c
mov ecx, dword [esp + 0x40]
test ecx, ecx
jg 0x402a86
jmp 0x402b9c
mov esi, eax
mov edi, eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
sub ecx, edx
test ecx, ecx
jle 0x402b93
mov eax, edi
sub eax, esi
add eax, 0x200
mov edx, ecx
cmp ecx, eax
jl 0x402a97
mov edx, eax
cmp dword [ebp + 8], 0
jne 0x402a9f
mov edx, ecx
test edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], edi
je 0x402b10
mov eax, esi
and eax, 3
je 0x402b10
mov ecx, esi
not esi
and esi, 3
lea ebx, [edx - 1]
cmp esi, ebx
jb 0x402ac6
mov esi, ebx
lea eax, [esi + 1]
push eax
push 0x20
mov edi, ecx
push ecx
call fcn.0040c570
add esp, 0xc
lea ecx, [esi + edi]
inc ecx
sub ebx, esi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
cmp ebx, 4
jge 0x402b19
test ebx, ebx
je 0x402b58
push ebx
push 0x20
mov esi, ecx
push ecx
call fcn.0040c570
mov edx, dword [esp + 0x34]
add esp, 0xc
add esi, ebx
cmp dword [ebp + 8], 0
jne 0x402b64
jmp 0x402a78
mov ecx, esi
mov ebx, edx
cmp ebx, 4
jl 0x402aea
mov eax, ebx
cmp ebx, 7
jl 0x402b25
mov eax, 7
neg eax
lea esi, [ebx + eax]
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + 4]
push eax
push 0x20
mov edi, ecx
push ecx
call fcn.0040c570
add esp, 0xc
lea ecx, [esi + edi]
add ecx, 4
sub ebx, esi
add ebx, 0xfffffffc
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
test ebx, ebx
jne 0x402aee
mov esi, ecx
cmp dword [ebp + 8], 0
je 0x402a78
mov eax, esi
sub eax, edi
lea ecx, [eax + 1]
cmp ecx, 0x200
jl 0x402a78
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push edi
call dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x402a70
jmp 0x40368c
mov dword [esp + 0x40], ecx
movzx eax, byte [esp + 0x38]
lea ecx, [esp + 0x39]
mov dword [esp + 0x10], ecx
jmp 0x402bb9
mov esi, eax
mov edi, eax
movzx eax, byte [esp + 0x38]
test al, al
je 0x402ccd
movsx edx, al
mov ebx, edi
sub ebx, esi
add ebx, 0x200
cmp ebx, edx
jl 0x402bd4
mov ebx, edx
cmp dword [ebp + 8], 0
jne 0x402bdc
mov ebx, edx
sub al, bl
mov byte [esp + 0x38], al
test ebx, ebx
je 0x402c7b
mov eax, ebx
and eax, 3
je 0x402cc0
mov dword [esp + 0x14], edi
xor edx, edx
nop
nop
nop
nop
nop
mov edi, esi
mov esi, dword [esp + 0x10]
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esi]
mov esi, edi
mov byte [edi + edx], cl
inc edx
cmp eax, edx
jne 0x402c00
add esi, edx
mov eax, ebx
sub eax, edx
mov edi, dword [esp + 0x14]
cmp ebx, 4
jb 0x402c7b
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
movzx ecx, byte [ecx]
mov byte [esi], cl
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
movzx ecx, byte [ecx]
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
movzx ecx, byte [ecx]
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
movzx ecx, byte [ecx]
mov byte [esi + 3], cl
add esi, 4
add eax, 0xfffffffc
jne 0x402c30
cmp dword [ebp + 8], 0
je 0x402bb4
mov eax, esi
sub eax, edi
lea ecx, [eax + 1]
cmp ecx, 0x200
jl 0x402bb4
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push edi
call dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x402bb0
jmp 0x40368c
mov eax, ebx
cmp ebx, 4
jae 0x402c30
jmp 0x402c7b
mov dword [esp + 0x14], edi
mov edi, esi
mov eax, dword [esp + 8]
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x28], ecx
xor esi, esi
test byte [esp + 4], 0x40
je 0x402cfe
and eax, 0xffffff
add eax, dword [esp]
mov esi, dword [esp + 0x28]
lea ecx, [esi + 1]
xor edx, edx
div ecx
sub esi, edx
cmp dword [esp], 0
jle 0x40306d
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
jmp 0x402d39
mov edi, eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
sub eax, dword [esp + 8]
test eax, eax
jle 0x402f25
mov dword [esp], eax
mov dword [esp + 8], eax
cmp dword [ebp + 8], 0
je 0x402d72
mov edx, edi
mov eax, edi
not eax
mov ecx, dword [esp + 0x14]
and eax, ecx
not ecx
and ecx, edi
sub eax, ecx
add eax, 0x200
mov ecx, dword [esp]
mov edx, ecx
mov dword [esp + 8], ecx
cmp ecx, eax
jl 0x402d6e
mov dword [esp + 8], eax
mov edx, dword [esp + 0xc]
test byte [esp + 4], 0x40
jne 0x402dd0
cmp dword [esp + 8], 0
je 0x402de0
mov eax, edi
and eax, 3
je 0x402de0
mov ecx, edi
mov ebx, edi
not ebx
and ebx, 3
mov eax, dword [esp + 8]
lea ecx, [eax - 1]
cmp ebx, ecx
jb 0x402d9d
mov ebx, ecx
lea eax, [ebx + 1]
push eax
push 0x30
push edi
mov dword [esp + 0x30], ecx
call fcn.0040c570
mov ecx, dword [esp + 0x30]
add esp, 0xc
add edi, ebx
inc edi
sub ecx, ebx
mov edx, dword [esp + 0xc]
cmp ecx, 4
jge 0x402de9
jmp 0x402e25
mov ecx, dword [esp + 8]
jmp 0x402e25
mov ecx, dword [esp + 8]
cmp ecx, 4
jl 0x402e25
mov eax, ecx
cmp ecx, 7
jl 0x402df5
mov eax, 7
neg eax
lea ebx, [ecx + eax]
add ebx, 3
and ebx, 0xfffffffc
lea eax, [ebx + 4]
push eax
push 0x30
push edi
mov dword [esp + 0x30], ecx
call fcn.0040c570
mov ecx, dword [esp + 0x30]
add esp, 0xc
add edi, ebx
add edi, 4
sub ecx, ebx
add ecx, 0xfffffffc
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x402e80
test cl, 1
jne 0x402e40
mov eax, ecx
cmp ecx, 1
jne 0x402ee4
jmp 0x402e80
mov al, 0x30
test byte [esp + 4], 0x40
je 0x402e6a
cmp esi, dword [esp + 0x28]
jne 0x402e69
movzx eax, byte [0x450001]
mov esi, ecx
mov ecx, eax
add cl, al
and cl, 0x94
sub al, cl
mov ecx, esi
add al, 0xca
xor esi, esi
jmp 0x402e6a
inc esi
mov byte [edi], al
inc edi
lea eax, [ecx - 1]
cmp ecx, 1
jne 0x402ee4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + 8], 0
je 0x402d2a
mov eax, edi
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, 0x1ff
jl 0x402d2a
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push ecx
call dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x402d20
jmp 0x40368c
movzx ecx, byte [0x450001]
mov edx, ecx
add dl, cl
and dl, 0x94
sub cl, dl
add cl, 0xca
xor esi, esi
mov edx, dword [esp + 0xc]
mov byte [edi + 1], cl
add edi, 2
add eax, 0xfffffffe
je 0x402e80
mov cl, 0x30
test byte [esp + 4], 0x40
je 0x402f11
cmp esi, dword [esp + 0x28]
jne 0x402f10
movzx edx, byte [0x450001]
mov ch, dl
add ch, dl
and ch, 0x94
sub dl, ch
add dl, 0xca
xor esi, esi
jmp 0x402f13
inc esi
mov dl, 0x30
mov byte [edi], dl
test byte [esp + 4], 0x40
je 0x402ed5
cmp esi, dword [esp + 0x28]
je 0x402ec0
inc esi
jmp 0x402ed5
movzx eax, byte [esp + 0x38]
mov esi, edi
mov edi, esi
lea ecx, [esp + 0x39]
mov dword [esp + 0x10], ecx
test al, al
jne 0x402f51
jmp 0x403079
movzx eax, byte [esp + 0x38]
test al, al
mov edx, dword [esp + 0xc]
je 0x403079
movsx ecx, al
mov esi, dword [esp + 0x14]
sub esi, edi
add esi, 0x200
cmp esi, ecx
jl 0x402f66
mov esi, ecx
cmp dword [ebp + 8], 0
jne 0x402f6e
mov esi, ecx
mov edx, ecx
not edx
and edx, esi
mov eax, esi
not eax
and eax, ecx
sub eax, edx
mov byte [esp + 0x38], al
test esi, esi
je 0x40301b
mov ecx, esi
and ecx, 3
je 0x403060
xor edx, edx
mov ebx, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
lea edi, [eax + 1]
mov dword [esp + 0x10], edi
movzx eax, byte [eax]
mov byte [ebx + edx], al
inc edx
cmp ecx, edx
jne 0x402fa0
add ebx, edx
mov edi, ebx
mov ecx, esi
sub ecx, edx
cmp esi, 4
jb 0x40301b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [edi], al
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [edi + 1], al
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [edi + 2], al
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [edi + 3], al
add edi, 4
add ecx, 0xfffffffc
jne 0x402fd0
cmp dword [ebp + 8], 0
je 0x402f40
mov eax, edi
mov edx, dword [esp + 0x14]
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, 0x200
jl 0x402f40
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push edx
call dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x40368c
mov edi, eax
mov dword [esp + 0x14], eax
jmp 0x402f40
mov ecx, esi
cmp esi, 4
jae 0x402fd0
jmp 0x40301b
lea eax, [esp + 0x39]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4031cc
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, edi
jne 0x40337c
lea eax, [esp + 0x2d]
mov dword [esp + 0x10], eax
nop
nop
nop
nop
nop
movzx ecx, byte [esp + 0x2c]
test cl, cl
je 0x403496
movsx edx, cl
mov eax, dword [esp + 0x14]
sub eax, esi
add eax, 0x200
cmp eax, edx
jl 0x4030c1
mov eax, edx
cmp dword [ebp + 8], 0
jne 0x4030c9
mov eax, edx
sub cl, al
mov byte [esp + 0x2c], cl
test eax, eax
je 0x40316b
mov ecx, eax
and ecx, 3
je 0x4031b0
mov dword [esp + 0x28], eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, esi
mov esi, dword [esp + 0x10]
lea edi, [esi + 1]
mov dword [esp + 0x10], edi
movzx ebx, byte [esi]
mov esi, eax
mov byte [eax + edx], bl
inc edx
cmp ecx, edx
jne 0x4030f0
add esi, edx
mov eax, dword [esp + 0x28]
mov ecx, eax
sub ecx, edx
cmp eax, 4
jb 0x40316b
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [esi], al
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [esi + 1], al
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [esi + 2], al
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
movzx eax, byte [eax]
mov byte [esi + 3], al
add esi, 4
add ecx, 0xfffffffc
jne 0x403120
cmp dword [ebp + 8], 0
je 0x4030a0
mov eax, esi
sub eax, dword [esp + 0x14]
lea ecx, [eax + 1]
cmp ecx, 0x200
jl 0x4030a0
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x40368c
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x4030a0
mov ecx, eax
cmp eax, 4
jae 0x403120
jmp 0x40316b
mov ecx, dword [esp + 0x28]
sub ecx, esi
je 0x403085
mov eax, dword [esp + 0x14]
sub eax, edi
add eax, 0x200
mov esi, ecx
cmp ecx, eax
jl 0x4031df
mov esi, eax
cmp dword [ebp + 8], 0
jne 0x4031e7
mov esi, ecx
cmp esi, 4
mov dword [esp + 0x28], ecx
jl 0x403240
lea ebx, [esi - 4]
mov eax, ebx
shr eax, 2
inc eax
and eax, 7
je 0x403244
mov dword [esp + 0xc], ebx
shl eax, 2
mov ebx, edx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebx + edx]
mov dword [edi + edx], ecx
add edx, 4
cmp eax, edx
jne 0x403210
add edi, edx
mov ecx, esi
sub ecx, edx
add ebx, edx
mov eax, ecx
mov edx, ebx
mov ebx, dword [esp + 0xc]
cmp ebx, 0x1c
jae 0x403250
jmp 0x403291
mov eax, esi
jmp 0x403291
mov ecx, esi
cmp ebx, 0x1c
jb 0x403291
nop
nop
nop
nop
nop
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [edi + 0x1c], eax
add edx, 0x20
add edi, 0x20
lea eax, [ecx - 0x20]
add ecx, 0xffffffdc
cmp ecx, 0xfffffff8
mov ecx, eax
jb 0x403250
test eax, eax
je 0x403311
mov ecx, eax
and ecx, 7
je 0x403360
mov dword [esp + 0xc], esi
mov esi, edx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esi + edx]
mov byte [edi + edx], bl
inc edx
cmp ecx, edx
jne 0x4032b0
add edi, edx
mov ecx, eax
sub ecx, edx
add esi, edx
mov edx, esi
mov esi, dword [esp + 0xc]
cmp eax, 8
jb 0x403311
nop
movzx eax, byte [edx]
mov byte [edi], al
movzx eax, byte [edx + 1]
mov byte [edi + 1], al
movzx eax, byte [edx + 2]
mov byte [edi + 2], al
movzx eax, byte [edx + 3]
mov byte [edi + 3], al
movzx eax, byte [edx + 4]
mov byte [edi + 4], al
movzx eax, byte [edx + 5]
mov byte [edi + 5], al
movzx eax, byte [edx + 6]
mov byte [edi + 6], al
movzx eax, byte [edx + 7]
add edx, 8
mov byte [edi + 7], al
add edi, 8
add ecx, 0xfffffff8
jne 0x4032d0
cmp dword [ebp + 8], 0
je 0x4031c0
mov eax, edi
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, 0x1ff
jl 0x4031c0
mov ebx, esi
mov esi, edx
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push ecx
call dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x40368c
mov edi, eax
mov dword [esp + 0x14], eax
mov edx, esi
mov esi, ebx
jmp 0x4031c0
mov ecx, eax
cmp eax, 8
jae 0x4032d0
jmp 0x403311
mov eax, dword [esp + 0x18]
sub eax, edi
je 0x403093
mov dword [esp + 0x18], eax
mov edi, eax
cmp dword [ebp + 8], 0
je 0x4033a9
mov ecx, dword [esp + 0x14]
mov eax, ecx
xor eax, esi
not ecx
and ecx, esi
add ecx, ecx
sub eax, ecx
add eax, 0x200
mov ecx, dword [esp + 0x18]
mov edi, ecx
cmp ecx, eax
jl 0x4033a9
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
je 0x403410
mov eax, esi
and eax, 3
je 0x403410
mov ecx, esi
mov ebx, esi
not ebx
and ebx, 3
lea esi, [edi - 1]
cmp ebx, esi
jb 0x4033ca
mov ebx, esi
lea eax, [ebx + 1]
push eax
push 0x30
mov edi, ecx
push ecx
call fcn.0040c570
add esp, 0xc
lea ecx, [ebx + edi]
inc ecx
sub esi, ebx
mov edi, dword [esp + 0x28]
cmp esi, 4
jge 0x403419
test esi, esi
je 0x403454
push esi
push 0x30
mov edi, ecx
push ecx
call fcn.0040c570
add esp, 0xc
add edi, esi
mov esi, edi
mov edi, dword [esp + 0x28]
cmp dword [ebp + 8], 0
jne 0x403460
jmp 0x403370
mov ecx, esi
mov esi, edi
cmp esi, 4
jl 0x4033ea
mov eax, esi
cmp esi, 7
jl 0x403425
mov eax, 7
neg eax
lea edi, [esi + eax]
add edi, 3
and edi, 0xfffffffc
lea eax, [edi + 4]
push eax
push 0x30
mov ebx, ecx
push ecx
call fcn.0040c570
add esp, 0xc
lea ecx, [edi + ebx]
add ecx, 4
sub esi, edi
add esi, 0xfffffffc
mov edi, dword [esp + 0x28]
test esi, esi
jne 0x4033ee
mov esi, ecx
cmp dword [ebp + 8], 0
je 0x403370
mov eax, esi
sub eax, dword [esp + 0x14]
cmp eax, 0x1ff
jl 0x403370
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x40368c
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x403370
mov ecx, dword [esp + 4]
mov eax, ecx
xor eax, 0xfffffffe
or ecx, 1
test ecx, eax
je 0x4034b0
mov ecx, dword [esp + 0x40]
test ecx, ecx
jle 0x4034b0
jne 0x4034c4
mov edi, dword [esp + 0x50]
inc edi
jmp 0x40104f
sub ecx, edi
je 0x4034b0
mov dword [esp + 0x40], ecx
mov edx, ecx
cmp dword [ebp + 8], 0
je 0x4034f8
mov ecx, esi
sub ecx, dword [esp + 0x14]
mov eax, 0x4cadcffe
sub eax, ecx
sub eax, ecx
xor ecx, 0x200
and eax, 0x400
sub eax, ecx
mov ecx, dword [esp + 0x40]
mov edx, ecx
cmp ecx, eax
jl 0x4034f8
mov edx, eax
test edx, edx
mov dword [esp + 4], edx
je 0x403540
mov eax, esi
and eax, 3
je 0x403540
mov ecx, esi
mov ebx, esi
not ebx
and ebx, 3
lea esi, [edx - 1]
cmp ebx, esi
jb 0x403519
mov ebx, esi
lea eax, [ebx + 1]
push eax
push 0x20
mov edi, ecx
push ecx
call fcn.0040c570
add esp, 0xc
sub esi, ebx
add ebx, edi
inc ebx
cmp esi, 4
jge 0x403549
jmp 0x403579
mov ebx, esi
mov esi, edx
cmp esi, 4
jl 0x403579
mov eax, esi
cmp esi, 7
jl 0x403555
mov eax, 7
neg eax
lea edi, [esi + eax]
add edi, 3
and edi, 0xfffffffc
lea eax, [edi + 4]
push eax
push 0x20
push ebx
call fcn.0040c570
add esp, 0xc
add ebx, edi
add ebx, 4
sub esi, edi
add esi, 0xfffffffc
test esi, esi
je 0x40358b
push esi
push 0x20
push ebx
call fcn.0040c570
add esp, 0xc
add ebx, esi
mov esi, ebx
mov edi, dword [esp + 4]
cmp dword [ebp + 8], 0
mov ecx, dword [esp + 0x40]
je 0x4034c0
mov eax, esi
sub eax, dword [esp + 0x14]
cmp eax, 0x1ff
jl 0x4034c0
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x40368c
mov esi, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x40]
jmp 0x4034c0
mov ebx, dword [esp + 8]
cmp ebx, 4
jb 0x403600
mov esi, ebx
and esi, 0xfffffffc
push esi
push 0x30
push edx
mov dword [esp + 0xc], edx
call fcn.0040c570
mov edx, dword [esp + 0xc]
add esp, 0xc
add edx, esi
and ebx, 3
mov ecx, dword [esp + 0x18]
test ebx, ebx
jne 0x40361a
jmp 0x402761
mov byte [edx], 0x30
dec ebx
inc edx
test ebx, ebx
je 0x402761
test byte [esp + 4], 0x40
je 0x40360d
inc edi
cmp edi, 4
jne 0x40360d
movzx eax, byte [0x450001]
xor al, 0xca
mov byte [edx], al
xor edi, edi
inc edx
test ebx, ebx
jne 0x40361a
jmp 0x402761
mov ecx, esi
mov edi, esi
jmp 0x40299e
fstp st(1)
fdivp st(1)
or dword [esp + 4], 0x4000000
jmp 0x402366
cmp dword [ebp + 8], 0
je 0x403698
mov ecx, esi
not ecx
mov eax, dword [esp + 0x14]
and ecx, eax
not eax
and eax, esi
sub eax, ecx
test eax, eax
jle 0x40369b
add dword [esp + 0x44], eax
push eax
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call dword [ebp + 8]
add esp, 0xc
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x40369b
xor esi, esi
mov dword [esp + 0x14], 0
jmp 0x40369b
mov byte [esi], 0
mov eax, dword [esp + 0x44]
add eax, esi
sub eax, dword [esp + 0x14]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret