Function at 0x4a4720
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc3db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov al, byte [ebx + 0x30e]
mov edi, ecx
test al, al
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
jne 0x4a4813
mov al, byte [ebp + 0x10]
test al, al
je 0x4a4917
mov eax, dword [edi + 0x8c]
push 0
push 9
push 0x110a
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
je 0x4a4917
mov eax, dword [edi + 0x8c]
push esi
push 3
push 0x110a
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi + 0x8c]
mov edx, dword [ecx + 0x44]
cmp esi, edx
je 0x4a4859
cmp esi, dword [ecx + 0x3c]
je 0x4a4856
mov edi, dword [ecx + 0x40]
cmp esi, edi
je 0x4a4856
cmp eax, edx
je 0x4a4856
cmp eax, dword [ecx + 0x3c]
je 0x4a4856
cmp eax, edi
je 0x4a4856
mov edx, dword [ecx + 0x48]
cmp esi, edx
jne 0x4a47f4
mov eax, dword [ebx + 0xa38]
test eax, eax
jg 0x4a4914
jmp 0x4a480c
cmp eax, edx
jne 0x4a4829
push esi
call fcn.005d9b6d
mov ecx, dword [ebx + 0xa38]
cmp ecx, eax
je 0x4a4914
mov byte [ebx + 0xa4c], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ecx + 0x4c]
cmp esi, edx
jne 0x4a4840
mov eax, dword [ebx + 0x46c]
test eax, eax
jg 0x4a4914
jmp 0x4a480c
cmp eax, edx
jne 0x4a4914
push esi
call fcn.005d9b6d
mov ecx, dword [ebx + 0x46c]
jmp 0x4a4804
mov edi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov word [ebp - 0x3c], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
push edx
push esi
call fcn.004a72a0
mov ecx, dword [edi + 0x8c]
push esi
mov byte [ebp + 0x13], al
call fcn.004a71e0
mov dl, byte [ebp + 0x13]
mov dword [ebp - 0x14], eax
test dl, dl
je 0x4a48aa
mov ecx, dword [edi + 0x8c]
push esi
call fcn.005d9b6d
mov edx, dword [ebx + 0x2ec]
xor ecx, ecx
cmp edx, eax
mov dl, byte [ebp + 0x13]
sete cl
jmp 0x4a48ac
xor ecx, ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a4906
mov esi, 3
cmp eax, esi
jne 0x4a48c2
test ecx, ecx
jne 0x4a4906
jmp 0x4a48ee
cmp eax, 1
jne 0x4a48d9
cmp dword [ebx + 0x8bc], esi
je 0x4a48ee
test dl, dl
je 0x4a4906
test ecx, ecx
jne 0x4a4906
jmp 0x4a48ee
cmp eax, 2
jne 0x4a48ee
cmp dword [ebx + 0x8bc], esi
jne 0x4a48ee
test dl, dl
je 0x4a4906
test ecx, ecx
jne 0x4a4906
lea ecx, [ebp - 0x40]
mov byte [ebx + 0xa4c], 1
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x4a4813
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x4a4917
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx + 0x468]
xor esi, esi
mov dword [ebp - 0xa4], 5
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x4c], si
lea eax, [ebp - 0x50]
mov ecx, ebx
push eax
mov byte [ebp - 4], 2
call fcn.005964f0
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x4a4963
mov dword [ebp - 0x90], eax
jmp 0x4a496f
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x90], ecx
push eax
call fcn.005c2f1a
add esp, 4
lea edx, [ebp - 0xa4]
mov dword [ebp - 0x8c], eax
mov eax, dword [edi + 0x1c]
push edx
push 0
push 0x104d
push eax
mov dword [ebp - 0x88], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebx + 0x60]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x4a4a69
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a4a69
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov word [ebp - 0x2c], di
mov cl, byte [ebx + 0x316]
mov byte [ebp - 4], 3
neg cl
sbb ecx, ecx
and ecx, 0xfde9
mov dword [ebp + 0x10], ecx
lea ecx, [ebp - 0x30]
call fcn.00401070
cmp esi, edi
je 0x4a4a3d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a4a3d
mov edx, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push edx
call edi
test eax, eax
mov dword [ebp - 0x28], eax
je 0x4a4a3d
lea eax, [eax + eax + 2]
push eax
call fcn.005db95d
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4a4a44
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push edx
call edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4a4a47
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
push eax
push 8
push edx
call fcn.00448f70
add esp, 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
mov esi, dword [ebx + 0x470]
mov edi, dword [ebx + 0x474]
mov eax, esi
or eax, edi
je 0x4a4e88
mov dword [ebp - 0x44], 0x6177d0
push 0
push 0x400
push edi
push esi
mov byte [ebp - 4], 4
call fcn.005c4ef0
mov dword [ebp - 0x14], eax
mov ecx, esi
cdq
mov dword [ebp - 0x24], eax
sub ecx, eax
mov eax, edi
push 0
sbb eax, edx
push 0x400
push eax
push ecx
mov dword [ebp - 0x20], edx
call fcn.005c4e40
mov ebx, eax
and ebx, 0x800003ff
jns 0x4a4aca
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, ebx
mov ecx, esi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
mov edx, dword [ebp - 0x24]
sub ecx, edx
mov edx, dword [ebp - 0x20]
sbb eax, edx
push 0
push 0x100000
push eax
push ecx
call fcn.005c4e40
and eax, 0x800003ff
jns 0x4a4afe
dec eax
or eax, 0xfffffc00
inc eax
push 0
push 0x40000000
push edi
push esi
mov dword [ebp - 0x20], eax
call fcn.005c4e40
lea ecx, [ebp + 0x10]
push 3
push ecx
push 0xe
push 0x400
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4a4b4c
mov edi, 0x6a1b58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
test edi, edi
jne 0x4a4c18
cmp esi, 0x3e7
jg 0x4a4c18
test esi, esi
jne 0x4a4bd6
cmp ebx, 0x3e7
jg 0x4a4bd6
test ebx, ebx
je 0x4a4bb6
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6cd998]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [ebp + 0x10]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebx
jmp 0x4a4c50
mov eax, dword [0x6cd994]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x70]
push str._d___s
push edx
call fcn.005c3928
add esp, 0x10
jmp 0x4a4c61
lea ebx, [ebx + ebx*4]
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, dword [0x6cd99c]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
lea eax, [ebp - 0x70]
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [ebp + 0x10]
push edx
push esi
push str._d_s_02d___s
push eax
jmp 0x4a4c59
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6cd9a0]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [ebp + 0x10]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push edi
lea edx, [ebp - 0x70]
push str._d_s_02d___s
push edx
call fcn.005c3928
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x70]
push eax
push 3
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.005d97f2
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8bc], 3
je 0x4a4e7c
lea edx, [ebp + 0x10]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4a4cc0
mov edi, 0x6a1b58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x47c]
mov ecx, dword [edi + 0x478]
test eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jl 0x4a4d45
jg 0x4a4cdc
test ecx, ecx
jbe 0x4a4d45
fild qword [ebp - 0x24]
fmul dword [0x6196c8]
fild qword [edi + 0x470]
fdivp st(1)
fcom qword [0x6196c0]
fnstsw ax
test ah, 1
je 0x4a4d43
fld st(0)
call fcn.005c3408
mov esi, eax
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fsubr st(1)
fmul dword [0x6196c8]
call fcn.005c3408
lea ecx, [ebp + 0x10]
push eax
push ecx
push esi
lea edx, [ebp - 0x70]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005c3928
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
lea eax, [ebp - 0x70]
push eax
push 4
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.005d97f2
jmp 0x4a4d45
fstp st(0)
mov eax, dword [edi + 0x488]
cmp eax, 0xa
jle 0x4a4e7c
mov esi, dword [edi + 0x470]
mov ecx, dword [edi + 0x474]
mov edx, dword [edi + 0x478]
mov edi, dword [edi + 0x47c]
cmp ecx, edi
jl 0x4a4e7c
jg 0x4a4d7e
cmp esi, edx
jb 0x4a4e7c
mov ebx, esi
or ebx, ecx
je 0x4a4e7c
mov dword [ebp - 0x20], 0x6177d0
sub esi, edx
mov byte [ebp - 4], 5
cdq
sbb ecx, edi
push edx
push eax
push ecx
push esi
call fcn.005c4e40
mov esi, edx
mov edi, eax
test esi, esi
jg 0x4a4dbf
jl 0x4a4daf
test edi, edi
jae 0x4a4dbf
mov edx, dword [0x6cdab8]
lea eax, [ebp - 0x70]
push edx
push eax
jmp 0x4a4e62
push 0
push 0x3c
push esi
push edi
call fcn.005c4ef0
mov ebx, eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.005c4e40
push 0
push 0x3c
push edx
push eax
call fcn.005c4ef0
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.005c4e40
test edx, edx
jg 0x4a4e59
jl 0x4a4e09
cmp eax, 0x2710
ja 0x4a4e59
test eax, eax
je 0x4a4e27
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x6cdb10]
push ecx
push eax
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.005c3928
add esp, 0x10
jmp 0x4a4e6a
mov eax, dword [ebp - 0x14]
push ebx
test eax, eax
je 0x4a4e45
mov ecx, dword [0x6cdb0c]
push eax
lea edx, [ebp - 0x70]
push ecx
push edx
call fcn.005c3928
add esp, 0x10
jmp 0x4a4e6a
mov eax, dword [0x6cdb08]
lea ecx, [ebp - 0x70]
push eax
push ecx
call fcn.005c3928
add esp, 0xc
jmp 0x4a4e6a
lea edx, [ebp - 0x70]
push 0x69deec
push edx
call fcn.005c3928
add esp, 8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x70]
push eax
push 5
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.005d97f2
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
jmp 0x4a5210
mov eax, dword [ebx + 0x44]
cmp eax, 4
je 0x4a4ea3
cmp eax, 5
je 0x4a4ea3
mov eax, dword [ebx + 0x308]
test eax, eax
je 0x4a5210
fld qword [ebx + 0x368]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
je 0x4a4ed4
mov eax, dword [ebx + 0x39c]
test eax, eax
jl 0x4a5210
jg 0x4a4ed4
mov eax, dword [ebx + 0x398]
test eax, eax
jbe 0x4a5210
fld qword [ebx + 0x368]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
jne 0x4a4ef8
fld qword [ebx + 0x368]
call fcn.005c3408
mov esi, eax
mov edi, edx
jmp 0x4a4f04
mov esi, dword [ebx + 0x398]
mov edi, dword [ebx + 0x39c]
test edi, edi
jl 0x4a4ff4
jg 0x4a4f16
test esi, esi
jbe 0x4a4ff4
mov dword [ebp - 0x44], 0x6177d0
push 0
push 0x3c
push edi
push esi
mov byte [ebp - 4], 6
call fcn.005c4ef0
mov ebx, eax
mov ecx, esi
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.005c4e40
push 0
push 0x3c
push edx
push eax
call fcn.005c4ef0
push 0
push 0xe10
push edi
push esi
mov dword [ebp + 0x10], eax
call fcn.005c4e40
test edx, edx
jg 0x4a4fc4
jl 0x4a4f6b
cmp eax, 0x2710
ja 0x4a4fc4
test eax, eax
je 0x4a4f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6cdb10]
push ecx
push eax
lea eax, [ebp - 0x124]
push edx
push eax
call fcn.005c3928
add esp, 0x10
jmp 0x4a4fd8
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4a4fad
mov ecx, dword [0x6cdb0c]
push eax
lea edx, [ebp - 0x124]
push ecx
push edx
call fcn.005c3928
add esp, 0x10
jmp 0x4a4fd8
mov eax, dword [0x6cdb08]
lea ecx, [ebp - 0x124]
push eax
push ecx
call fcn.005c3928
add esp, 0xc
jmp 0x4a4fd8
lea edx, [ebp - 0x124]
push 0x69deec
push edx
call fcn.005c3928
add esp, 8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x124]
push eax
push 3
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.005d97f2
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x8bc], 3
je 0x4a5210
fld qword [ebx + 0x480]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
jne 0x4a5210
lea edx, [ebp + 0x10]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4a5052
mov edi, 0x6a1b58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
fld qword [ebx + 0x368]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
jne 0x4a506d
fld qword [ebx + 0x368]
jmp 0x4a5073
fild qword [ebx + 0x398]
fld qword [ebx + 0x480]
fmul qword [0x6196d0]
fdivrp st(1)
fcom qword [0x6196c0]
fnstsw ax
test ah, 1
je 0x4a50d7
fld st(0)
call fcn.005c3408
mov esi, eax
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fsubr st(1)
fmul qword [0x6196d0]
call fcn.005c3408
lea ecx, [ebp + 0x10]
push eax
push ecx
push esi
lea edx, [ebp - 0x70]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005c3928
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
lea eax, [ebp - 0x70]
push eax
push 4
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.005d97f2
jmp 0x4a50d9
fstp st(0)
mov eax, dword [ebx + 0x488]
cmp eax, 0xa
mov dword [ebp - 0x14], eax
jle 0x4a5210
mov eax, dword [ebx + 0x47c]
mov ecx, dword [ebx + 0x478]
test eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jl 0x4a5210
jg 0x4a510f
test ecx, ecx
jbe 0x4a5210
fld qword [ebx + 0x368]
fdiv qword [ebx + 0x480]
fsub qword [0x6196b8]
fild qword [ebp - 0x24]
fmulp st(1)
fidiv dword [ebp - 0x14]
call fcn.005c3408
mov edi, eax
mov esi, edx
mov dword [ebp - 0x44], 0x6177d0
test esi, esi
mov byte [ebp - 4], 7
jg 0x4a5157
jl 0x4a5147
test edi, edi
jae 0x4a5157
mov edx, dword [0x6cdab8]
lea eax, [ebp - 0x70]
push edx
push eax
jmp 0x4a51f2
push 0
push 0x3c
push esi
push edi
call fcn.005c4ef0
mov dword [ebp - 0x20], eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.005c4e40
push 0
push 0x3c
push edx
push eax
call fcn.005c4ef0
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.005c4e40
test edx, edx
jg 0x4a51e9
jl 0x4a51a2
cmp eax, 0x2710
ja 0x4a51e9
test eax, eax
je 0x4a51b3
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x6cdb10]
push ecx
push eax
jmp 0x4a51c5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
test eax, eax
push ecx
je 0x4a51d4
mov edx, dword [0x6cdb0c]
push eax
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.005c3928
add esp, 0x10
jmp 0x4a51fa
mov edx, dword [0x6cdb08]
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.005c3928
add esp, 0xc
jmp 0x4a51fa
lea ecx, [ebp - 0x70]
push 0x69deec
push ecx
call fcn.005c3928
add esp, 8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x70]
push edx
push 5
push eax
call fcn.005d97f2
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x47c]
test eax, eax
jg 0x4a525e
jl 0x4a5226
mov eax, dword [ebx + 0x478]
test eax, eax
ja 0x4a525e
mov eax, dword [ebx + 0xa24]
cmp eax, 0x7565
jne 0x4a523c
mov ecx, dword [0x6cd80c]
push ecx
jmp 0x4a524e
cmp eax, 0x7540
je 0x4a525e
test eax, eax
je 0x4a525e
mov edx, dword [0x6cd804]
push edx
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 4
push esi
call fcn.005d97f2
jmp 0x4a5261
mov esi, dword [ebp - 0x1c]
lea edx, [ebx + 0x64]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a527e
mov ecx, dword [ebp - 0x18]
push edx
push 7
push esi
call fcn.005d97f2
lea edx, [ebx + 0x94]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a529e
mov ecx, dword [ebp - 0x18]
push edx
push 1
push esi
call fcn.005d97f2
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4a5585
mov esi, dword [ebx + 0x54]
xor edi, edi
xor eax, eax
cmp esi, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov word [ebp - 0x2c], di
je 0x4a531f
cmp eax, edi
je 0x4a531f
push esi
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x4a531f
mov eax, dword [ebp - 0x30]
cmp eax, esi
ja 0x4a531f
push eax
call fcn.005c2f1a
mov ecx, dword [ebp - 0x30]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, esi
jb 0x4a531f
push esi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x78], di
call fcn.00401f50
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.00401f40
push eax
lea ecx, [ebp - 0x30]
call fcn.00401f50
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x4a5368
lea ecx, [ebp - 0x30]
call fcn.00401070
cmp esi, edi
je 0x4a5368
push esi
call fcn.005c2f1a
add esp, 4
test eax, eax
je 0x4a5368
push esi
call fcn.005c2f1a
lea eax, [eax + eax + 2]
push eax
call fcn.005db95d
add esp, 8
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x4a5368
push esi
call fcn.005c2f1a
mov ecx, dword [ebp - 0x30]
push esi
push ecx
mov dword [ebp - 0x28], eax
call fcn.005c30ba
add esp, 0xc
mov eax, dword [0x6cce70]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x4a554e
mov eax, dword [0x6ccce8]
test eax, eax
je 0x4a5387
mov dword [ebp + 0x10], eax
jmp 0x4a5391
mov dword [ebp + 0x10], 0x6cccec
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6cccf8]
test esi, esi
jne 0x4a53a0
mov esi, 0x6cccfc
test esi, esi
mov dword [ebp - 0x14], esi
je 0x4a554e
test eax, eax
je 0x4a554e
push eax
push esi
call fcn.005c342f
add esp, 8
test eax, eax
je 0x4a554e
mov edx, dword [ebp - 0x30]
push esi
push edx
call fcn.005c3775
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4a53f2
push esi
inc ebx
call fcn.005c2f1a
lea edi, [edi + eax*2]
push esi
push edi
call fcn.005c3775
add esp, 0xc
mov edi, eax
jmp 0x4a53d6
test ebx, ebx
je 0x4a554e
xor eax, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x30]
push eax
call fcn.00401f50
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
push ecx
call fcn.005c2f1a
push esi
mov edi, eax
call fcn.005c2f1a
add esp, 8
cmp edi, eax
jbe 0x4a547b
lea ecx, [ebp - 0x30]
call fcn.00401070
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x4a5440
lea edi, [ebp - 0x3c]
mov edx, dword [ebp + 0x10]
push edx
call fcn.005c2f1a
mov edx, eax
push esi
mov esi, edx
call fcn.005c2f1a
push edi
sub esi, eax
imul esi, ebx
call fcn.005c2f1a
add esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.005db95d
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x30], ebx
jne 0x4a547e
jmp 0x4a5542
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4a5488
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
push ecx
push eax
call fcn.005c3775
add esp, 8
test eax, eax
mov dword [ebp - 0x20], eax
je 0x4a5505
mov esi, dword [ebp - 0x34]
mov edi, ebx
sub eax, esi
sar eax, 1
shl eax, 1
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005c2f1a
mov ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 1
mov edx, ecx
mov esi, eax
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005c2f1a
mov esi, dword [ebp - 0x14]
lea ebx, [ebx + eax*2]
push esi
call fcn.005c2f1a
mov ecx, dword [ebp - 0x20]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x34], eax
call fcn.005c3775
add esp, 0x14
jmp 0x4a5498
mov esi, dword [ebp - 0x34]
push esi
call fcn.005c2f1a
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp - 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005c2f1a
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005c2f1a
add esp, 0xc
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4a5558
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push edx
push 9
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00448f70
add esp, 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
jmp 0x4a558b
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4a559d
push eax
push 0xa
push edi
mov ecx, esi
call fcn.005d97f2
cmp dword [ebx + 0x8bc], 3
jne 0x4a55b7
mov edx, dword [0x6cdb3c]
mov ecx, esi
push edx
push 4
push edi
call fcn.005d97f2
mov al, byte [ebp + 0xc]
test al, al
je 0x4a55e4
test edi, edi
jl 0x4a55e4
push 8
call fcn.005db95d
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], esi
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x4a3940
call fcn.005dfb54
lea ecx, [ebp - 0x50]
mov byte [ebx + 0xa4c], 1
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc