Function at 0x4b4370
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ff76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
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 - 0x20], edi
mov dword [ebp - 4], 0
jne 0x4b4462
mov al, byte [ebp + 0x10]
test al, al
je 0x4b455e
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 0x4b455e
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 0x4b44a5
cmp esi, dword [ecx + 0x3c]
je 0x4b44a5
cmp esi, dword [ecx + 0x40]
je 0x4b44a5
cmp eax, edx
je 0x4b44a5
cmp eax, dword [ecx + 0x3c]
je 0x4b44a5
cmp eax, dword [ecx + 0x40]
je 0x4b44a5
mov edx, dword [ecx + 0x48]
cmp esi, edx
jne 0x4b4443
mov eax, dword [ebx + 0xa60]
test eax, eax
jg 0x4b455e
jmp 0x4b445b
cmp eax, edx
jne 0x4b4478
push esi
call fcn.005fd0ea
mov ecx, dword [ebx + 0xa60]
cmp ecx, eax
je 0x4b455e
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 0x4b448f
mov eax, dword [ebx + 0x484]
test eax, eax
jg 0x4b455e
jmp 0x4b445b
cmp eax, edx
jne 0x4b455e
push esi
call fcn.005fd0ea
mov ecx, dword [ebx + 0x484]
jmp 0x4b4453
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 1
push edx
push esi
call fcn.004b7160
mov ecx, dword [edi + 0x8c]
push esi
mov byte [ebp + 0x13], al
call fcn.004b70a0
mov dl, byte [ebp + 0x13]
mov dword [ebp - 0x34], eax
test dl, dl
je 0x4b44f6
mov ecx, dword [edi + 0x8c]
push esi
call fcn.005fd0ea
mov edx, dword [ebx + 0x300]
xor ecx, ecx
cmp edx, eax
mov dl, byte [ebp + 0x13]
sete cl
jmp 0x4b44f8
xor ecx, ecx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4b4552
mov esi, 3
cmp eax, esi
jne 0x4b450e
test ecx, ecx
jne 0x4b4552
jmp 0x4b453a
cmp eax, 1
jne 0x4b4525
cmp dword [ebx + 0x8d4], esi
je 0x4b453a
test dl, dl
je 0x4b4552
test ecx, ecx
jne 0x4b4552
jmp 0x4b453a
cmp eax, 2
jne 0x4b453a
cmp dword [ebx + 0x8d4], esi
jne 0x4b453a
test dl, dl
je 0x4b4552
test ecx, ecx
jne 0x4b4552
lea ecx, [ebp - 0x44]
mov byte [ebx + 0xa78], 1
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x4b4462
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x80]
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x480]
mov dword [ebp - 0x84], 5
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x64], 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.005b8990
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x4b45aa
mov dword [ebp - 0x70], eax
jmp 0x4b45b3
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x70], ecx
push eax
call fcn.005e639f
add esp, 4
inc eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x84]
mov dword [ebp - 0x68], 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 - 0x24], eax
test esi, esi
je 0x4b46ab
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b46ab
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x18], di
mov dl, byte [ebx + 0x32a]
lea ecx, [ebp - 0x1c]
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 0x4b467f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b467f
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 - 0x14], eax
je 0x4b467f
lea ecx, [eax + eax + 2]
push ecx
call fcn.005feedc
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4b4686
mov edx, dword [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push 0
push eax
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4b4689
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
push ecx
mov eax, dword [edx + 0x1c]
push 8
push eax
call fcn.0044f3d0
add esp, 0x10
lea ecx, [ebp - 0x1c]
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 0x4b4a8d
mov edx, dword [ebx + 0x110]
mov esi, dword [ebx + 0x114]
or edx, esi
jne 0x4b4a8d
mov eax, dword [ebx + 0x44]
cmp eax, 4
je 0x4b46f0
cmp eax, 5
je 0x4b46f0
mov eax, dword [ebx + 0x31c]
test eax, eax
je 0x4b4ed9
fld qword [ebx + 0x380]
fcomp qword [0x633d48]
fnstsw ax
test ah, 0x41
je 0x4b4721
mov eax, dword [ebx + 0x3b4]
test eax, eax
jl 0x4b4ed9
jg 0x4b4721
mov eax, dword [ebx + 0x3b0]
test eax, eax
jbe 0x4b4ed9
fld qword [ebx + 0x380]
fcomp qword [0x633d48]
fnstsw ax
test ah, 0x41
jne 0x4b4745
fld qword [ebx + 0x380]
call fcn.005e6974
mov esi, eax
mov edi, edx
jmp 0x4b4751
mov esi, dword [ebx + 0x3b0]
mov edi, dword [ebx + 0x3b4]
test edi, edi
jl 0x4b4841
jg 0x4b4763
test esi, esi
jbe 0x4b4841
mov dword [ebp - 0x34], 0x633d50
push 0
push 0x3c
push edi
push esi
mov byte [ebp - 4], 6
call fcn.005e8310
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.005e8260
push 0
push 0x3c
push edx
push eax
call fcn.005e8310
push 0
push 0xe10
push edi
push esi
mov dword [ebp + 0x10], eax
call fcn.005e8260
test edx, edx
jg 0x4b4811
jl 0x4b47b8
cmp eax, 0x2710
ja 0x4b4811
test eax, eax
je 0x4b47d9
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6d2100]
push ecx
push eax
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.005e6db3
add esp, 0x10
jmp 0x4b4825
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4b47fa
mov ecx, dword [0x6d20fc]
push eax
lea edx, [ebp - 0x108]
push ecx
push edx
call fcn.005e6db3
add esp, 0x10
jmp 0x4b4825
mov eax, dword [0x6d20f8]
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.005e6db3
add esp, 0xc
jmp 0x4b4825
lea edx, [ebp - 0x108]
push 0x69ffa0
push edx
call fcn.005e6db3
add esp, 8
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x108]
push eax
push 3
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.005fcd72
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x8d4], 3
je 0x4b4ed9
fld qword [ebx + 0x498]
fcomp qword [0x633d48]
fnstsw ax
test ah, 0x41
jne 0x4b4ed9
lea edx, [ebp - 0x18]
push 8
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4b489f
mov edi, 0x6a4160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x18]
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 [0x633d48]
fnstsw ax
test ah, 0x41
jne 0x4b48ba
fld qword [ebx + 0x380]
jmp 0x4b48c0
fild qword [ebx + 0x3b0]
fld qword [ebx + 0x498]
fmul qword [0x635660]
fdivrp st(1)
fcom qword [0x635650]
fnstsw ax
test ah, 1
je 0x4b492a
fld st(0)
call fcn.005e6974
mov esi, eax
mov dword [ebp + 0x10], esi
fild dword [ebp + 0x10]
fsubr st(1)
fmul qword [0x635660]
call fcn.005e6974
lea ecx, [ebp - 0x18]
push eax
push ecx
push esi
lea edx, [ebp - 0xc8]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005e6db3
mov ecx, dword [ebp - 0x24]
add esp, 0x14
lea eax, [ebp - 0xc8]
push eax
push 4
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.005fcd72
jmp 0x4b492c
fstp st(0)
mov eax, dword [ebx + 0x4a0]
cmp eax, 0xa
mov dword [ebp + 0x10], eax
jle 0x4b4ed9
mov eax, dword [ebx + 0x494]
mov ecx, dword [ebx + 0x490]
test eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jl 0x4b4ed9
jg 0x4b4962
test ecx, ecx
jbe 0x4b4ed9
fld qword [ebx + 0x380]
fdiv qword [ebx + 0x498]
fsub qword [0x635648]
fild qword [ebp - 0x38]
fmulp st(1)
fidiv dword [ebp + 0x10]
call fcn.005e6974
mov edi, eax
mov esi, edx
mov dword [ebp - 0x34], 0x633d50
test esi, esi
mov byte [ebp - 4], 7
jg 0x4b49b5
jl 0x4b499a
test edi, edi
jae 0x4b49b5
mov edx, dword [0x6d20a8]
lea eax, [ebp - 0xc8]
push edx
push eax
call fcn.005e6db3
add esp, 8
jmp 0x4b4a6f
push 0
push 0x3c
push esi
push edi
call fcn.005e8310
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.005e8260
push 0
push 0x3c
push edx
push eax
call fcn.005e8310
push 0
push 0xe10
push esi
push edi
mov dword [ebp + 0x10], eax
call fcn.005e8260
test edx, edx
jg 0x4b4a58
jl 0x4b49ff
cmp eax, 0x2710
ja 0x4b4a58
test eax, eax
je 0x4b4a20
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6d2100]
push ecx
push eax
lea eax, [ebp - 0xc8]
push edx
push eax
call fcn.005e6db3
add esp, 0x10
jmp 0x4b4a6c
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4b4a41
mov ecx, dword [0x6d20fc]
push eax
lea edx, [ebp - 0xc8]
push ecx
push edx
call fcn.005e6db3
add esp, 0x10
jmp 0x4b4a6c
mov eax, dword [0x6d20f8]
lea ecx, [ebp - 0xc8]
push eax
push ecx
call fcn.005e6db3
add esp, 0xc
jmp 0x4b4a6c
lea edx, [ebp - 0xc8]
push 0x69ffa0
push edx
call fcn.005e6db3
add esp, 8
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0xc8]
push eax
push 5
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.005fcd72
mov byte [ebp - 4], 2
jmp 0x4b4ed9
mov edx, eax
or edx, ecx
je 0x4b4a98
mov dword [ebp - 0x18], eax
jmp 0x4b4aa7
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebx + 0x114]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x88], 0x633d50
mov ebx, dword [ebp - 0x18]
push 0
mov esi, ecx
push 0x400
push esi
push ebx
mov byte [ebp - 4], 4
call fcn.005e8310
mov dword [ebp - 0x34], 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.005e8260
mov ebx, eax
and ebx, 0x800003ff
jns 0x4b4afa
dec ebx
or ebx, 0xfffffc00
inc ebx
mov ecx, dword [ebp - 0x18]
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.005e8260
mov edi, eax
and edi, 0x800003ff
jns 0x4b4b30
dec edi
or edi, 0xfffffc00
inc edi
mov ecx, dword [ebp - 0x18]
push 0
push 0x40000000
push esi
push ecx
mov dword [ebp - 0x28], edi
call fcn.005e8260
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 0x4b4b87
mov edi, 0x6a4160
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 - 0x14]
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4b4c56
cmp edi, 0x3e7
jg 0x4b4c56
test edi, edi
jne 0x4b4c1d
cmp ebx, 0x3e7
jg 0x4b4c1d
test ebx, ebx
je 0x4b4bfa
mov eax, dword [ebp - 0x34]
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 [0x6d1f88]
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 - 0xc8]
push str._d_s_02d___s
push edx
jmp 0x4b4c9d
mov eax, dword [0x6d1f84]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
lea edx, [ebp - 0xc8]
push str._d___s
push edx
call fcn.005e6db3
add esp, 0x10
jmp 0x4b4ca5
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 [0x6d1f8c]
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 0x4b4c91
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 [0x6d1f90]
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 - 0xc8]
push str._d_s_02d___s
push eax
call fcn.005e6db3
add esp, 0x18
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, dword [ebp - 0x20]
push 3
push edx
call fcn.005fcd72
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8d4], 3
je 0x4b4ed2
lea eax, [ebp - 0x30]
push 8
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4b4d0a
mov edi, 0x6a4160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x30]
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 - 0x14]
mov eax, dword [edi + 0x494]
mov ecx, dword [edi + 0x490]
test eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jl 0x4b4d92
jg 0x4b4d26
test ecx, ecx
jbe 0x4b4d92
fild qword [ebp - 0x38]
fmul dword [0x635658]
fild qword [ebp - 0x18]
fdivp st(1)
fcom qword [0x635650]
fnstsw ax
test ah, 1
je 0x4b4d90
fld st(0)
call fcn.005e6974
mov ebx, eax
mov dword [ebp + 0x10], ebx
fild dword [ebp + 0x10]
fsubr st(1)
fmul dword [0x635658]
call fcn.005e6974
lea ecx, [ebp - 0x30]
push eax
push ecx
push ebx
lea edx, [ebp - 0xc8]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.005e6db3
mov ecx, dword [ebp - 0x24]
add esp, 0x14
lea eax, [ebp - 0xc8]
push eax
push 4
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.005fcd72
jmp 0x4b4d92
fstp st(0)
mov eax, dword [edi + 0x4a0]
cmp eax, 0xa
jle 0x4b4ed2
mov edx, dword [edi + 0x490]
mov edi, dword [edi + 0x494]
cmp esi, edi
jl 0x4b4ed2
mov ecx, dword [ebp - 0x18]
jg 0x4b4dc2
cmp ecx, edx
jb 0x4b4ed2
mov ebx, ecx
or ebx, esi
je 0x4b4ed2
mov dword [ebp - 0x34], 0x633d50
sub ecx, edx
mov byte [ebp - 4], 5
cdq
sbb esi, edi
push edx
push eax
push esi
push ecx
call fcn.005e8260
mov esi, edx
mov edi, eax
test esi, esi
jg 0x4b4e06
jl 0x4b4df3
test edi, edi
jae 0x4b4e06
mov edx, dword [0x6d20a8]
lea eax, [ebp - 0xc8]
push edx
push eax
jmp 0x4b4eb5
push 0
push 0x3c
push esi
push edi
call fcn.005e8310
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.005e8260
push 0
push 0x3c
push edx
push eax
call fcn.005e8310
push 0
push 0xe10
push esi
push edi
mov dword [ebp + 0x10], eax
call fcn.005e8260
test edx, edx
jg 0x4b4ea9
jl 0x4b4e50
cmp eax, 0x2710
ja 0x4b4ea9
test eax, eax
je 0x4b4e71
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6d2100]
push ecx
push eax
lea eax, [ebp - 0xc8]
push edx
push eax
call fcn.005e6db3
add esp, 0x10
jmp 0x4b4ebd
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4b4e92
mov ecx, dword [0x6d20fc]
push eax
lea edx, [ebp - 0xc8]
push ecx
push edx
call fcn.005e6db3
add esp, 0x10
jmp 0x4b4ebd
mov eax, dword [0x6d20f8]
lea ecx, [ebp - 0xc8]
push eax
push ecx
call fcn.005e6db3
add esp, 0xc
jmp 0x4b4ebd
lea edx, [ebp - 0xc8]
push 0x69ffa0
push edx
call fcn.005e6db3
add esp, 8
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0xc8]
push eax
push 5
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.005fcd72
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x494]
test eax, eax
jg 0x4b4f26
jl 0x4b4eef
mov eax, dword [ebx + 0x490]
test eax, eax
ja 0x4b4f26
mov eax, dword [ebx + 0xa4c]
cmp eax, 0x7565
jne 0x4b4f05
mov edx, dword [0x6d1dfc]
push edx
jmp 0x4b4f16
cmp eax, 0x7540
je 0x4b4f26
test eax, eax
je 0x4b4f26
mov eax, dword [0x6d1df4]
push eax
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push 4
push esi
call fcn.005fcd72
jmp 0x4b4f29
mov esi, dword [ebp - 0x24]
lea edx, [ebx + 0x64]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b4f46
mov ecx, dword [ebp - 0x20]
push edx
push 7
push esi
call fcn.005fcd72
lea edx, [ebx + 0x94]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b4f66
mov ecx, dword [ebp - 0x20]
push edx
push 1
push esi
call fcn.005fcd72
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4b543f
mov ecx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], edi
mov esi, dword [ecx + 0x54]
mov dword [ebp - 0x1c], eax
cmp esi, edi
mov word [ebp - 0x18], di
je 0x4b4fe0
cmp eax, edi
je 0x4b4fe0
push esi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x4b4fe0
mov eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x4b4fe0
push eax
call fcn.005e639f
mov edx, dword [ebp - 0x1c]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, esi
jb 0x4b4fe0
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040e5a0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 8
call fcn.00402400
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402410
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x4b5029
lea ecx, [ebp - 0x1c]
call fcn.00401070
cmp esi, edi
je 0x4b5029
push esi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x4b5029
push esi
call fcn.005e639f
lea ecx, [eax + eax + 2]
push ecx
call fcn.005feedc
add esp, 8
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x4b5029
push esi
call fcn.005e639f
mov edx, dword [ebp - 0x1c]
push esi
push edx
mov dword [ebp - 0x14], eax
call fcn.005e6569
add esp, 0xc
mov eax, dword [0x6d12f8]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x4b5220
mov eax, dword [0x6d1160]
test eax, eax
je 0x4b5048
mov dword [ebp + 0x10], eax
jmp 0x4b5052
mov dword [ebp + 0x10], 0x6d1164
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6d1170]
test esi, esi
jne 0x4b5061
mov esi, 0x6d1174
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], esi
test ecx, ecx
je 0x4b5220
test esi, esi
je 0x4b5220
test eax, eax
je 0x4b5220
push eax
push esi
call fcn.005e69c4
add esp, 8
test eax, eax
je 0x4b5220
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e6c00
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4b50be
push esi
inc ebx
call fcn.005e639f
lea eax, [edi + eax*2]
push esi
push eax
call fcn.005e6c00
add esp, 0xc
mov edi, eax
jmp 0x4b50a2
test ebx, ebx
je 0x4b5220
mov ecx, dword [ebp - 0x1c]
xor eax, eax
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x40], ax
call fcn.00402410
push esi
mov byte [ebp - 4], 0xa
call fcn.005e639f
mov edx, dword [ebp + 0x10]
mov edi, eax
push edx
call fcn.005e639f
add esp, 8
cmp eax, edi
jbe 0x4b514d
lea ecx, [ebp - 0x1c]
call fcn.00401070
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x4b510c
lea edi, [ebp - 0x40]
push esi
call fcn.005e639f
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.005e639f
mov edx, eax
push edi
sub edx, esi
imul edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.005e639f
mov ecx, dword [ebp - 0x2c]
add ecx, eax
lea edx, [ecx + ecx + 2]
push edx
call fcn.005feedc
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x4b5150
jmp 0x4b5214
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4b515a
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
push ecx
push eax
call fcn.005e6c00
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b51d7
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.005e639f
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.005e639f
mov esi, dword [ebp - 0x34]
lea ebx, [ebx + eax*2]
push esi
call fcn.005e639f
mov ecx, dword [ebp - 0x2c]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x28], eax
call fcn.005e6c00
add esp, 0x14
jmp 0x4b516a
mov esi, dword [ebp - 0x28]
push esi
call fcn.005e639f
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.005e639f
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e639f
add esp, 0xc
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [0x6d12fc]
test eax, eax
je 0x4b5413
mov eax, dword [0x6d1140]
test eax, eax
je 0x4b523b
mov dword [ebp + 0x10], eax
jmp 0x4b5245
mov dword [ebp + 0x10], 0x6d1144
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6d1150]
test esi, esi
jne 0x4b5254
mov esi, 0x6d1154
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], esi
test ecx, ecx
je 0x4b541a
test esi, esi
je 0x4b5413
test eax, eax
je 0x4b5413
push eax
push esi
call fcn.005e69c4
add esp, 8
test eax, eax
je 0x4b5413
mov edx, dword [ebp - 0x1c]
push esi
push edx
call fcn.005e6c00
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4b52b1
push esi
inc ebx
call fcn.005e639f
lea eax, [edi + eax*2]
push esi
push eax
call fcn.005e6c00
add esp, 0xc
mov edi, eax
jmp 0x4b5295
test ebx, ebx
je 0x4b5413
xor eax, eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402410
push esi
mov byte [ebp - 4], 0xb
call fcn.005e639f
mov ecx, dword [ebp + 0x10]
mov edi, eax
push ecx
call fcn.005e639f
add esp, 8
cmp eax, edi
jbe 0x4b5340
lea ecx, [ebp - 0x1c]
call fcn.00401070
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x4b52ff
lea edi, [ebp - 0x40]
push esi
call fcn.005e639f
mov edx, dword [ebp + 0x10]
mov esi, eax
push edx
call fcn.005e639f
mov edx, eax
push edi
sub edx, esi
imul edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.005e639f
mov ecx, dword [ebp - 0x2c]
add ecx, eax
lea edx, [ecx + ecx + 2]
push edx
call fcn.005feedc
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x4b5343
jmp 0x4b5407
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4b534d
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
push ecx
push eax
call fcn.005e6c00
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b53ca
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.005e639f
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.005e639f
mov esi, dword [ebp - 0x34]
lea ebx, [ebx + eax*2]
push esi
call fcn.005e639f
mov ecx, dword [ebp - 0x2c]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x28], eax
call fcn.005e6c00
add esp, 0x14
jmp 0x4b535d
mov esi, dword [ebp - 0x28]
push esi
call fcn.005e639f
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.005e639f
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e639f
add esp, 0xc
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4b541d
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push edx
push 9
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.0044f3d0
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4b545c
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
push eax
push 0xa
push edi
mov ecx, esi
call fcn.005fcd72
jmp 0x4b5462
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
cmp dword [ebx + 0x8d4], 3
jne 0x4b547c
mov edx, dword [0x6d212c]
mov ecx, esi
push edx
push 4
push edi
call fcn.005fcd72
mov al, byte [ebp + 0xc]
test al, al
je 0x4b54a9
test edi, edi
jl 0x4b54a9
push 8
call fcn.005feedc
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], esi
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x4b3590
call fcn.006030d4
lea ecx, [ebp - 0x50]
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