Function at 0x4b4770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f729
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 + 0x322]
mov edi, ecx
test al, al
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
jne 0x4b4862
mov al, byte [ebp + 0x10]
test al, al
je 0x4b495e
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 0x4b495e
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 0x4b48a5
cmp esi, dword [ecx + 0x3c]
je 0x4b48a5
cmp esi, dword [ecx + 0x40]
je 0x4b48a5
cmp eax, edx
je 0x4b48a5
cmp eax, dword [ecx + 0x3c]
je 0x4b48a5
cmp eax, dword [ecx + 0x40]
je 0x4b48a5
mov edx, dword [ecx + 0x48]
cmp esi, edx
jne 0x4b4843
mov eax, dword [ebx + 0xa60]
test eax, eax
jg 0x4b495e
jmp 0x4b485b
cmp eax, edx
jne 0x4b4878
push esi
call fcn.005fbeda
mov ecx, dword [ebx + 0xa60]
cmp ecx, eax
je 0x4b495e
mov byte [ebx + 0xa78], 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 0x4b488f
mov eax, dword [ebx + 0x484]
test eax, eax
jg 0x4b495e
jmp 0x4b485b
cmp eax, edx
jne 0x4b495e
push esi
call fcn.005fbeda
mov ecx, dword [ebx + 0x484]
jmp 0x4b4853
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.004b7520
mov ecx, dword [edi + 0x8c]
push esi
mov byte [ebp + 0x13], al
call fcn.004b7460
mov dl, byte [ebp + 0x13]
mov dword [ebp - 0x14], eax
test dl, dl
je 0x4b48f6
mov ecx, dword [edi + 0x8c]
push esi
call fcn.005fbeda
mov edx, dword [ebx + 0x300]
xor ecx, ecx
cmp edx, eax
mov dl, byte [ebp + 0x13]
sete cl
jmp 0x4b48f8
xor ecx, ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b4952
mov esi, 3
cmp eax, esi
jne 0x4b490e
test ecx, ecx
jne 0x4b4952
jmp 0x4b493a
cmp eax, 1
jne 0x4b4925
cmp dword [ebx + 0x8d4], esi
je 0x4b493a
test dl, dl
je 0x4b4952
test ecx, ecx
jne 0x4b4952
jmp 0x4b493a
cmp eax, 2
jne 0x4b493a
cmp dword [ebx + 0x8d4], esi
jne 0x4b493a
test dl, dl
je 0x4b4952
test ecx, ecx
jne 0x4b4952
lea ecx, [ebp - 0x40]
mov byte [ebx + 0xa78], 1
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x4b4862
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x90]
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x480]
mov dword [ebp - 0x94], 5
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov word [ebp - 0x48], si
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
mov byte [ebp - 4], 2
call fcn.005b7790
mov eax, dword [ebp - 0x4c]
cmp eax, esi
je 0x4b49b3
mov dword [ebp - 0x80], eax
jmp 0x4b49bc
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], ecx
push eax
call fcn.005e519b
add esp, 4
inc eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x94]
mov dword [ebp - 0x78], 0
mov ecx, dword [eax + 0x1c]
push edx
push 0
push 0x104d
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebx + 0x60]
mov dword [ebp - 0x34], eax
test esi, esi
je 0x4b4ab4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b4ab4
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x1c], di
mov dl, byte [ebx + 0x32a]
lea ecx, [ebp - 0x20]
neg dl
sbb edx, edx
mov byte [ebp - 4], 3
and edx, 0xfde9
mov dword [ebp + 0x10], edx
call fcn.00401070
cmp esi, edi
je 0x4b4a88
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b4a88
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
mov eax, dword [ebp + 0x10]
push eax
call edi
test eax, eax
mov dword [ebp - 0x18], eax
je 0x4b4a88
lea ecx, [eax + eax + 2]
push ecx
call fcn.005fdccd
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4b4a8f
mov edx, dword [ebp - 0x18]
push edx
push eax
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push 0
push eax
call edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b4a92
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
mov eax, dword [edx + 0x1c]
push 8
push eax
call fcn.0044f300
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [ebx + 0x488]
mov ecx, dword [ebx + 0x48c]
mov edx, eax
or edx, ecx
jne 0x4b4e6b
mov edx, dword [ebx + 0x110]
mov esi, dword [ebx + 0x114]
or edx, esi
jne 0x4b4e6b
mov eax, dword [ebx + 0x44]
cmp eax, 4
je 0x4b4af9
cmp eax, 5
je 0x4b4af9
mov eax, dword [ebx + 0x31c]
test eax, eax
je 0x4b5293
fld qword [ebx + 0x380]
fcomp qword [0x63bc30]
fnstsw ax
test ah, 0x41
je 0x4b4b2a
mov eax, dword [ebx + 0x3b4]
test eax, eax
jl 0x4b5293
jg 0x4b4b2a
mov eax, dword [ebx + 0x3b0]
test eax, eax
jbe 0x4b5293
fld qword [ebx + 0x380]
fcomp qword [0x63bc30]
fnstsw ax
test ah, 0x41
jne 0x4b4b4e
fld qword [ebx + 0x380]
call fcn.005e5674
mov esi, eax
mov edi, edx
jmp 0x4b4b5a
mov esi, dword [ebx + 0x3b0]
mov edi, dword [ebx + 0x3b4]
test edi, edi
jl 0x4b4c4a
jg 0x4b4b6c
test esi, esi
jbe 0x4b4c4a
mov dword [ebp - 0x14], 0x63bc38
push 0
push 0x3c
push edi
push esi
mov byte [ebp - 4], 6
call fcn.005e7110
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.005e7060
push 0
push 0x3c
push edx
push eax
call fcn.005e7110
push 0
push 0xe10
push edi
push esi
mov dword [ebp + 0x10], eax
call fcn.005e7060
test edx, edx
jg 0x4b4c1a
jl 0x4b4bc1
cmp eax, 0x2710
ja 0x4b4c1a
test eax, eax
je 0x4b4be2
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6f7148]
push ecx
push eax
lea eax, [ebp - 0x124]
push edx
push eax
call fcn.005e5bb8
add esp, 0x10
jmp 0x4b4c2e
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4b4c03
mov ecx, dword [0x6f7144]
push eax
lea edx, [ebp - 0x124]
push ecx
push edx
call fcn.005e5bb8
add esp, 0x10
jmp 0x4b4c2e
mov eax, dword [0x6f7140]
lea ecx, [ebp - 0x124]
push eax
push ecx
call fcn.005e5bb8
add esp, 0xc
jmp 0x4b4c2e
lea edx, [ebp - 0x124]
push 0x6c4f98
push edx
call fcn.005e5bb8
add esp, 8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x124]
push eax
push 3
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.005fbb62
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x8d4], 3
je 0x4b5293
fld qword [ebx + 0x498]
fcomp qword [0x63bc30]
fnstsw ax
test ah, 0x41
jne 0x4b5293
lea edx, [ebp + 0x10]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4b4ca8
mov edi, 0x6c9158
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 + 0x380]
fcomp qword [0x63bc30]
fnstsw ax
test ah, 0x41
jne 0x4b4cc3
fld qword [ebx + 0x380]
jmp 0x4b4cc9
fild qword [ebx + 0x3b0]
fld qword [ebx + 0x498]
fmul qword [0x63db48]
fdivrp st(1)
fcom qword [0x63db38]
fnstsw ax
test ah, 1
je 0x4b4d2d
fld st(0)
call fcn.005e5674
mov esi, eax
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fsubr st(1)
fmul qword [0x63db48]
call fcn.005e5674
lea ecx, [ebp + 0x10]
push eax
push ecx
push esi
lea edx, [ebp - 0x6c]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005e5bb8
mov ecx, dword [ebp - 0x34]
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
push 4
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.005fbb62
jmp 0x4b4d2f
fstp st(0)
mov eax, dword [ebx + 0x4a0]
cmp eax, 0xa
mov dword [ebp - 0x14], eax
jle 0x4b5293
mov eax, dword [ebx + 0x494]
mov ecx, dword [ebx + 0x490]
test eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jl 0x4b5293
jg 0x4b4d65
test ecx, ecx
jbe 0x4b5293
fld qword [ebx + 0x380]
fdiv qword [ebx + 0x498]
fsub qword [0x63db30]
fild qword [ebp - 0x30]
fmulp st(1)
fidiv dword [ebp - 0x14]
call fcn.005e5674
mov edi, eax
mov esi, edx
mov dword [ebp - 0x28], 0x63bc38
test esi, esi
mov byte [ebp - 4], 7
jg 0x4b4dad
jl 0x4b4d9d
test edi, edi
jae 0x4b4dad
mov edx, dword [0x6f70f0]
lea eax, [ebp - 0x6c]
push edx
push eax
jmp 0x4b4e48
push 0
push 0x3c
push esi
push edi
call fcn.005e7110
mov dword [ebp - 0x2c], eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.005e7060
push 0
push 0x3c
push edx
push eax
call fcn.005e7110
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.005e7060
test edx, edx
jg 0x4b4e3f
jl 0x4b4df8
cmp eax, 0x2710
ja 0x4b4e3f
test eax, eax
je 0x4b4e09
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x6f7148]
push ecx
push eax
jmp 0x4b4e1b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
test eax, eax
push ecx
je 0x4b4e2a
mov edx, dword [0x6f7144]
push eax
lea eax, [ebp - 0x6c]
push edx
push eax
call fcn.005e5bb8
add esp, 0x10
jmp 0x4b4e50
mov edx, dword [0x6f7140]
lea eax, [ebp - 0x6c]
push edx
push eax
call fcn.005e5bb8
add esp, 0xc
jmp 0x4b4e50
lea ecx, [ebp - 0x6c]
push 0x6c4f98
push ecx
call fcn.005e5bb8
add esp, 8
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x6c]
push edx
push 5
push eax
call fcn.005fbb62
mov byte [ebp - 4], 2
jmp 0x4b5293
mov edx, eax
or edx, ecx
je 0x4b4e76
mov dword [ebp - 0x1c], eax
jmp 0x4b4e85
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebx + 0x114]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xa4], 0x63bc38
mov ebx, dword [ebp - 0x1c]
push 0
mov esi, ecx
push 0x400
push esi
push ebx
mov byte [ebp - 4], 4
call fcn.005e7110
mov dword [ebp - 0x14], eax
push 0
cdq
mov edi, eax
mov eax, esi
sub ebx, edi
push 0x400
sbb eax, edx
mov dword [ebp - 0x2c], edx
push eax
push ebx
call fcn.005e7060
mov ebx, eax
and ebx, 0x800003ff
jns 0x4b4ed8
dec ebx
or ebx, 0xfffffc00
inc ebx
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
shl eax, 0xa
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
mov edx, dword [ebp - 0x2c]
sub ecx, edi
push 0
sbb eax, edx
push 0x100000
push eax
push ecx
call fcn.005e7060
mov edi, eax
and edi, 0x800003ff
jns 0x4b4f0e
dec edi
or edi, 0xfffffc00
inc edi
mov ecx, dword [ebp - 0x1c]
push 0
push 0x40000000
push esi
push ecx
mov dword [ebp - 0x28], edi
call fcn.005e7060
lea edx, [ebp + 0x10]
push 3
push edx
push 0xe
push 0x400
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4b4f65
mov edi, 0x6c9158
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 - 0x28]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4b502e
cmp edi, 0x3e7
jg 0x4b502e
test edi, edi
jne 0x4b4ff5
cmp ebx, 0x3e7
jg 0x4b4ff5
test ebx, ebx
je 0x4b4fd5
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 [0x6f6fd0]
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
lea edx, [ebp - 0x6c]
push str._d_s_02d___s
push edx
jmp 0x4b5072
mov eax, dword [0x6f6fcc]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x6c]
push str._d___s
push edx
call fcn.005e5bb8
add esp, 0x10
jmp 0x4b507a
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 [0x6f6fd4]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [ebp + 0x10]
push edx
push edi
jmp 0x4b5069
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x6f6fd8]
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
mov edx, dword [ebp - 0x2c]
push ecx
push edx
lea eax, [ebp - 0x6c]
push str._d_s_02d___s
push eax
call fcn.005e5bb8
add esp, 0x18
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x24]
push 3
push edx
call fcn.005fbb62
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8d4], 3
je 0x4b528c
lea eax, [ebp + 0x10]
push 3
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4b50dc
mov edi, 0x6c9158
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 esi, dword [ebp - 0x18]
mov eax, dword [edi + 0x494]
mov ecx, dword [edi + 0x490]
test eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jl 0x4b515e
jg 0x4b50f8
test ecx, ecx
jbe 0x4b515e
fild qword [ebp - 0x30]
fmul dword [0x63db40]
fild qword [ebp - 0x1c]
fdivp st(1)
fcom qword [0x63db38]
fnstsw ax
test ah, 1
je 0x4b515c
fld st(0)
call fcn.005e5674
mov ebx, eax
mov dword [ebp - 0x14], ebx
fild dword [ebp - 0x14]
fsubr st(1)
fmul dword [0x63db40]
call fcn.005e5674
lea ecx, [ebp + 0x10]
push eax
push ecx
push ebx
lea edx, [ebp - 0x6c]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005e5bb8
mov ecx, dword [ebp - 0x34]
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
push 4
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.005fbb62
jmp 0x4b515e
fstp st(0)
mov eax, dword [edi + 0x4a0]
cmp eax, 0xa
jle 0x4b528c
mov edx, dword [edi + 0x494]
mov ebx, dword [edi + 0x490]
cmp esi, edx
jl 0x4b528c
mov ecx, dword [ebp - 0x1c]
jg 0x4b518e
cmp ecx, ebx
jb 0x4b528c
mov edi, ecx
or edi, esi
je 0x4b528c
mov dword [ebp - 0x2c], 0x63bc38
sub ecx, ebx
mov byte [ebp - 4], 5
sbb esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.005e7060
mov esi, edx
mov edi, eax
test esi, esi
jg 0x4b51cf
jl 0x4b51bf
test edi, edi
jae 0x4b51cf
mov edx, dword [0x6f70f0]
lea eax, [ebp - 0x6c]
push edx
push eax
jmp 0x4b5272
push 0
push 0x3c
push esi
push edi
call fcn.005e7110
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.005e7060
push 0
push 0x3c
push edx
push eax
call fcn.005e7110
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.005e7060
test edx, edx
jg 0x4b5269
jl 0x4b5219
cmp eax, 0x2710
ja 0x4b5269
test eax, eax
je 0x4b5237
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x6f7148]
push ecx
push eax
lea eax, [ebp - 0x6c]
push edx
push eax
call fcn.005e5bb8
add esp, 0x10
jmp 0x4b527a
mov eax, dword [ebp - 0x14]
push ebx
test eax, eax
je 0x4b5255
mov ecx, dword [0x6f7144]
push eax
lea edx, [ebp - 0x6c]
push ecx
push edx
call fcn.005e5bb8
add esp, 0x10
jmp 0x4b527a
mov eax, dword [0x6f7140]
lea ecx, [ebp - 0x6c]
push eax
push ecx
call fcn.005e5bb8
add esp, 0xc
jmp 0x4b527a
lea edx, [ebp - 0x6c]
push 0x6c4f98
push edx
call fcn.005e5bb8
add esp, 8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x6c]
push eax
push 5
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.005fbb62
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x494]
test eax, eax
jg 0x4b52e0
jl 0x4b52a9
mov eax, dword [ebx + 0x490]
test eax, eax
ja 0x4b52e0
mov eax, dword [ebx + 0xa4c]
cmp eax, 0x7565
jne 0x4b52bf
mov edx, dword [0x6f6e44]
push edx
jmp 0x4b52d0
cmp eax, 0x7540
je 0x4b52e0
test eax, eax
je 0x4b52e0
mov eax, dword [0x6f6e3c]
push eax
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
push 4
push esi
call fcn.005fbb62
jmp 0x4b52e3
mov esi, dword [ebp - 0x34]
lea edx, [ebx + 0x64]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b5300
mov ecx, dword [ebp - 0x24]
push edx
push 7
push esi
call fcn.005fbb62
lea edx, [ebx + 0x94]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b5320
mov ecx, dword [ebp - 0x24]
push edx
push 1
push esi
call fcn.005fbb62
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4b5802
mov ecx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x18], edi
mov esi, dword [ecx + 0x54]
mov dword [ebp - 0x20], eax
cmp esi, edi
mov word [ebp - 0x1c], di
je 0x4b53a3
cmp eax, edi
je 0x4b53a3
push esi
call fcn.005e519b
add esp, 4
test eax, eax
je 0x4b53a3
mov eax, dword [ebp - 0x20]
cmp eax, esi
ja 0x4b53a3
push eax
call fcn.005e519b
mov edx, dword [ebp - 0x20]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, esi
jb 0x4b53a3
push esi
lea ecx, [ebp - 0xa0]
call fcn.0040e5b0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.004023b0
push eax
lea ecx, [ebp - 0x20]
call fcn.004023c0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x4b53ec
lea ecx, [ebp - 0x20]
call fcn.00401070
cmp esi, edi
je 0x4b53ec
push esi
call fcn.005e519b
add esp, 4
test eax, eax
je 0x4b53ec
push esi
call fcn.005e519b
lea ecx, [eax + eax + 2]
push ecx
call fcn.005fdccd
add esp, 8
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x4b53ec
push esi
call fcn.005e519b
mov edx, dword [ebp - 0x20]
push esi
push edx
mov dword [ebp - 0x18], eax
call fcn.005e5369
add esp, 0xc
mov eax, dword [0x6f6364]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x4b55e3
mov eax, dword [0x6f61d8]
test eax, eax
je 0x4b540b
mov dword [ebp + 0x10], eax
jmp 0x4b5415
mov dword [ebp + 0x10], 0x6f61dc
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6f61e8]
test esi, esi
jne 0x4b5424
mov esi, 0x6f61ec
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
test ecx, ecx
je 0x4b55e3
test esi, esi
je 0x4b55e3
test eax, eax
je 0x4b55e3
push eax
push esi
call fcn.005e56c4
add esp, 8
test eax, eax
je 0x4b55e3
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.005e5a05
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4b5481
push esi
inc ebx
call fcn.005e519b
lea eax, [edi + eax*2]
push esi
push eax
call fcn.005e5a05
add esp, 0xc
mov edi, eax
jmp 0x4b5465
test ebx, ebx
je 0x4b55e3
mov ecx, dword [ebp - 0x20]
xor eax, eax
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov word [ebp - 0x3c], ax
call fcn.004023c0
push esi
mov byte [ebp - 4], 0xa
call fcn.005e519b
mov edx, dword [ebp + 0x10]
mov edi, eax
push edx
call fcn.005e519b
add esp, 8
cmp eax, edi
jbe 0x4b5510
lea ecx, [ebp - 0x20]
call fcn.00401070
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x4b54cf
lea edi, [ebp - 0x3c]
push esi
call fcn.005e519b
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.005e519b
mov edx, eax
push edi
sub edx, esi
imul edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.005e519b
mov ecx, dword [ebp - 0x2c]
add ecx, eax
lea edx, [ecx + ecx + 2]
push edx
call fcn.005fdccd
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x20], ebx
jne 0x4b5513
jmp 0x4b55d7
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4b551d
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
push ecx
push eax
call fcn.005e5a05
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b559a
mov esi, dword [ebp - 0x28]
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.005e519b
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.005e519b
mov esi, dword [ebp - 0x14]
lea ebx, [ebx + eax*2]
push esi
call fcn.005e519b
mov ecx, dword [ebp - 0x2c]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x28], eax
call fcn.005e5a05
add esp, 0x14
jmp 0x4b552d
mov esi, dword [ebp - 0x28]
push esi
call fcn.005e519b
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp - 0x28]
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.005e519b
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005e519b
add esp, 0xc
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [0x6f6368]
test eax, eax
je 0x4b57d6
mov eax, dword [0x6f61b8]
test eax, eax
je 0x4b55fe
mov dword [ebp + 0x10], eax
jmp 0x4b5608
mov dword [ebp + 0x10], 0x6f61bc
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6f61c8]
test esi, esi
jne 0x4b5617
mov esi, 0x6f61cc
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
test ecx, ecx
je 0x4b57dd
test esi, esi
je 0x4b57d6
test eax, eax
je 0x4b57d6
push eax
push esi
call fcn.005e56c4
add esp, 8
test eax, eax
je 0x4b57d6
mov edx, dword [ebp - 0x20]
push esi
push edx
call fcn.005e5a05
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4b5674
push esi
inc ebx
call fcn.005e519b
lea eax, [edi + eax*2]
push esi
push eax
call fcn.005e5a05
add esp, 0xc
mov edi, eax
jmp 0x4b5658
test ebx, ebx
je 0x4b57d6
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 - 0x20]
push eax
call fcn.004023c0
push esi
mov byte [ebp - 4], 0xb
call fcn.005e519b
mov ecx, dword [ebp + 0x10]
mov edi, eax
push ecx
call fcn.005e519b
add esp, 8
cmp eax, edi
jbe 0x4b5703
lea ecx, [ebp - 0x20]
call fcn.00401070
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x4b56c2
lea edi, [ebp - 0x3c]
push esi
call fcn.005e519b
mov edx, dword [ebp + 0x10]
mov esi, eax
push edx
call fcn.005e519b
mov edx, eax
push edi
sub edx, esi
imul edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.005e519b
mov ecx, dword [ebp - 0x2c]
add ecx, eax
lea edx, [ecx + ecx + 2]
push edx
call fcn.005fdccd
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x20], ebx
jne 0x4b5706
jmp 0x4b57ca
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4b5710
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
push ecx
push eax
call fcn.005e5a05
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b578d
mov esi, dword [ebp - 0x28]
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.005e519b
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.005e519b
mov esi, dword [ebp - 0x14]
lea ebx, [ebx + eax*2]
push esi
call fcn.005e519b
mov ecx, dword [ebp - 0x2c]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x28], eax
call fcn.005e5a05
add esp, 0x14
jmp 0x4b5720
mov esi, dword [ebp - 0x28]
push esi
call fcn.005e519b
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp - 0x28]
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.005e519b
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005e519b
add esp, 0xc
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b57e0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push edx
push 9
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.0044f300
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401070
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4b581f
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
push eax
push 0xa
push edi
mov ecx, esi
call fcn.005fbb62
jmp 0x4b5825
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
cmp dword [ebx + 0x8d4], 3
jne 0x4b583f
mov edx, dword [0x6f7174]
mov ecx, esi
push edx
push 4
push edi
call fcn.005fbb62
mov al, byte [ebp + 0xc]
test al, al
je 0x4b586c
test edi, edi
jl 0x4b586c
push 8
call fcn.005fdccd
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], esi
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x4b3990
call fcn.00601eca
lea ecx, [ebp - 0x4c]
mov byte [ebx + 0xa78], 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