Function at 0x4b5090
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x620f26
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 0x4b5182
mov al, byte [ebp + 0x10]
test al, al
je 0x4b527e
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 0x4b527e
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 0x4b51c5
cmp esi, dword [ecx + 0x3c]
je 0x4b51c5
cmp esi, dword [ecx + 0x40]
je 0x4b51c5
cmp eax, edx
je 0x4b51c5
cmp eax, dword [ecx + 0x3c]
je 0x4b51c5
cmp eax, dword [ecx + 0x40]
je 0x4b51c5
mov edx, dword [ecx + 0x48]
cmp esi, edx
jne 0x4b5163
mov eax, dword [ebx + 0xa60]
test eax, eax
jg 0x4b527e
jmp 0x4b517b
cmp eax, edx
jne 0x4b5198
push esi
call fcn.005fe04d
mov ecx, dword [ebx + 0xa60]
cmp ecx, eax
je 0x4b527e
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 0x4b51af
mov eax, dword [ebx + 0x484]
test eax, eax
jg 0x4b527e
jmp 0x4b517b
cmp eax, edx
jne 0x4b527e
push esi
call fcn.005fe04d
mov ecx, dword [ebx + 0x484]
jmp 0x4b5173
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.004b7e80
mov ecx, dword [edi + 0x8c]
push esi
mov byte [ebp + 0x13], al
call fcn.004b7dc0
mov dl, byte [ebp + 0x13]
mov dword [ebp - 0x34], eax
test dl, dl
je 0x4b5216
mov ecx, dword [edi + 0x8c]
push esi
call fcn.005fe04d
mov edx, dword [ebx + 0x300]
xor ecx, ecx
cmp edx, eax
mov dl, byte [ebp + 0x13]
sete cl
jmp 0x4b5218
xor ecx, ecx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4b5272
mov esi, 3
cmp eax, esi
jne 0x4b522e
test ecx, ecx
jne 0x4b5272
jmp 0x4b525a
cmp eax, 1
jne 0x4b5245
cmp dword [ebx + 0x8d4], esi
je 0x4b525a
test dl, dl
je 0x4b5272
test ecx, ecx
jne 0x4b5272
jmp 0x4b525a
cmp eax, 2
jne 0x4b525a
cmp dword [ebx + 0x8d4], esi
jne 0x4b525a
test dl, dl
je 0x4b5272
test ecx, ecx
jne 0x4b5272
lea ecx, [ebp - 0x44]
mov byte [ebx + 0xa78], 1
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x4b5182
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.005b97b0
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x4b52ca
mov dword [ebp - 0x70], eax
jmp 0x4b52d3
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x70], ecx
push eax
call fcn.005e71bf
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 0x4b53cb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b53cb
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 0x4b539f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b539f
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 0x4b539f
lea ecx, [eax + eax + 2]
push ecx
call fcn.005ffe3f
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4b53a6
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 0x4b53a9
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.0044f770
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 0x4b57ad
mov edx, dword [ebx + 0x110]
mov esi, dword [ebx + 0x114]
or edx, esi
jne 0x4b57ad
mov eax, dword [ebx + 0x44]
cmp eax, 4
je 0x4b5410
cmp eax, 5
je 0x4b5410
mov eax, dword [ebx + 0x31c]
test eax, eax
je 0x4b5bf9
fld qword [ebx + 0x380]
fcomp qword [0x634d48]
fnstsw ax
test ah, 0x41
je 0x4b5441
mov eax, dword [ebx + 0x3b4]
test eax, eax
jl 0x4b5bf9
jg 0x4b5441
mov eax, dword [ebx + 0x3b0]
test eax, eax
jbe 0x4b5bf9
fld qword [ebx + 0x380]
fcomp qword [0x634d48]
fnstsw ax
test ah, 0x41
jne 0x4b5465
fld qword [ebx + 0x380]
call fcn.005e7794
mov esi, eax
mov edi, edx
jmp 0x4b5471
mov esi, dword [ebx + 0x3b0]
mov edi, dword [ebx + 0x3b4]
test edi, edi
jl 0x4b5561
jg 0x4b5483
test esi, esi
jbe 0x4b5561
mov dword [ebp - 0x34], 0x634d50
push 0
push 0x3c
push edi
push esi
mov byte [ebp - 4], 6
call fcn.005e9130
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.005e9080
push 0
push 0x3c
push edx
push eax
call fcn.005e9130
push 0
push 0xe10
push edi
push esi
mov dword [ebp + 0x10], eax
call fcn.005e9080
test edx, edx
jg 0x4b5531
jl 0x4b54d8
cmp eax, 0x2710
ja 0x4b5531
test eax, eax
je 0x4b54f9
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6d3168]
push ecx
push eax
lea eax, [ebp - 0x108]
push edx
push eax
call fcn.005e7bd3
add esp, 0x10
jmp 0x4b5545
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4b551a
mov ecx, dword [0x6d3164]
push eax
lea edx, [ebp - 0x108]
push ecx
push edx
call fcn.005e7bd3
add esp, 0x10
jmp 0x4b5545
mov eax, dword [0x6d3160]
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.005e7bd3
add esp, 0xc
jmp 0x4b5545
lea edx, [ebp - 0x108]
push 0x6a0fa0
push edx
call fcn.005e7bd3
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.005fdcd2
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x8d4], 3
je 0x4b5bf9
fld qword [ebx + 0x498]
fcomp qword [0x634d48]
fnstsw ax
test ah, 0x41
jne 0x4b5bf9
lea edx, [ebp - 0x18]
push 8
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4b55bf
mov edi, 0x6a5160
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 [0x634d48]
fnstsw ax
test ah, 0x41
jne 0x4b55da
fld qword [ebx + 0x380]
jmp 0x4b55e0
fild qword [ebx + 0x3b0]
fld qword [ebx + 0x498]
fmul qword [0x636660]
fdivrp st(1)
fcom qword [0x636650]
fnstsw ax
test ah, 1
je 0x4b564a
fld st(0)
call fcn.005e7794
mov esi, eax
mov dword [ebp + 0x10], esi
fild dword [ebp + 0x10]
fsubr st(1)
fmul qword [0x636660]
call fcn.005e7794
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.005e7bd3
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.005fdcd2
jmp 0x4b564c
fstp st(0)
mov eax, dword [ebx + 0x4a0]
cmp eax, 0xa
mov dword [ebp + 0x10], eax
jle 0x4b5bf9
mov eax, dword [ebx + 0x494]
mov ecx, dword [ebx + 0x490]
test eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jl 0x4b5bf9
jg 0x4b5682
test ecx, ecx
jbe 0x4b5bf9
fld qword [ebx + 0x380]
fdiv qword [ebx + 0x498]
fsub qword [0x636648]
fild qword [ebp - 0x38]
fmulp st(1)
fidiv dword [ebp + 0x10]
call fcn.005e7794
mov edi, eax
mov esi, edx
mov dword [ebp - 0x34], 0x634d50
test esi, esi
mov byte [ebp - 4], 7
jg 0x4b56d5
jl 0x4b56ba
test edi, edi
jae 0x4b56d5
mov edx, dword [0x6d3110]
lea eax, [ebp - 0xc8]
push edx
push eax
call fcn.005e7bd3
add esp, 8
jmp 0x4b578f
push 0
push 0x3c
push esi
push edi
call fcn.005e9130
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.005e9080
push 0
push 0x3c
push edx
push eax
call fcn.005e9130
push 0
push 0xe10
push esi
push edi
mov dword [ebp + 0x10], eax
call fcn.005e9080
test edx, edx
jg 0x4b5778
jl 0x4b571f
cmp eax, 0x2710
ja 0x4b5778
test eax, eax
je 0x4b5740
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6d3168]
push ecx
push eax
lea eax, [ebp - 0xc8]
push edx
push eax
call fcn.005e7bd3
add esp, 0x10
jmp 0x4b578c
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4b5761
mov ecx, dword [0x6d3164]
push eax
lea edx, [ebp - 0xc8]
push ecx
push edx
call fcn.005e7bd3
add esp, 0x10
jmp 0x4b578c
mov eax, dword [0x6d3160]
lea ecx, [ebp - 0xc8]
push eax
push ecx
call fcn.005e7bd3
add esp, 0xc
jmp 0x4b578c
lea edx, [ebp - 0xc8]
push 0x6a0fa0
push edx
call fcn.005e7bd3
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.005fdcd2
mov byte [ebp - 4], 2
jmp 0x4b5bf9
mov edx, eax
or edx, ecx
je 0x4b57b8
mov dword [ebp - 0x18], eax
jmp 0x4b57c7
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebx + 0x114]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x88], 0x634d50
mov ebx, dword [ebp - 0x18]
push 0
mov esi, ecx
push 0x400
push esi
push ebx
mov byte [ebp - 4], 4
call fcn.005e9130
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.005e9080
mov ebx, eax
and ebx, 0x800003ff
jns 0x4b581a
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.005e9080
mov edi, eax
and edi, 0x800003ff
jns 0x4b5850
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.005e9080
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 0x4b58a7
mov edi, 0x6a5160
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 0x4b5976
cmp edi, 0x3e7
jg 0x4b5976
test edi, edi
jne 0x4b593d
cmp ebx, 0x3e7
jg 0x4b593d
test ebx, ebx
je 0x4b591a
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 [0x6d2ff0]
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 0x4b59bd
mov eax, dword [0x6d2fec]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
lea edx, [ebp - 0xc8]
push str._d___s
push edx
call fcn.005e7bd3
add esp, 0x10
jmp 0x4b59c5
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 [0x6d2ff4]
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 0x4b59b1
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 [0x6d2ff8]
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.005e7bd3
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.005fdcd2
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8d4], 3
je 0x4b5bf2
lea eax, [ebp - 0x30]
push 8
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4b5a2a
mov edi, 0x6a5160
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 0x4b5ab2
jg 0x4b5a46
test ecx, ecx
jbe 0x4b5ab2
fild qword [ebp - 0x38]
fmul dword [0x636658]
fild qword [ebp - 0x18]
fdivp st(1)
fcom qword [0x636650]
fnstsw ax
test ah, 1
je 0x4b5ab0
fld st(0)
call fcn.005e7794
mov ebx, eax
mov dword [ebp + 0x10], ebx
fild dword [ebp + 0x10]
fsubr st(1)
fmul dword [0x636658]
call fcn.005e7794
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.005e7bd3
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.005fdcd2
jmp 0x4b5ab2
fstp st(0)
mov eax, dword [edi + 0x4a0]
cmp eax, 0xa
jle 0x4b5bf2
mov edx, dword [edi + 0x490]
mov edi, dword [edi + 0x494]
cmp esi, edi
jl 0x4b5bf2
mov ecx, dword [ebp - 0x18]
jg 0x4b5ae2
cmp ecx, edx
jb 0x4b5bf2
mov ebx, ecx
or ebx, esi
je 0x4b5bf2
mov dword [ebp - 0x34], 0x634d50
sub ecx, edx
mov byte [ebp - 4], 5
cdq
sbb esi, edi
push edx
push eax
push esi
push ecx
call fcn.005e9080
mov esi, edx
mov edi, eax
test esi, esi
jg 0x4b5b26
jl 0x4b5b13
test edi, edi
jae 0x4b5b26
mov edx, dword [0x6d3110]
lea eax, [ebp - 0xc8]
push edx
push eax
jmp 0x4b5bd5
push 0
push 0x3c
push esi
push edi
call fcn.005e9130
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.005e9080
push 0
push 0x3c
push edx
push eax
call fcn.005e9130
push 0
push 0xe10
push esi
push edi
mov dword [ebp + 0x10], eax
call fcn.005e9080
test edx, edx
jg 0x4b5bc9
jl 0x4b5b70
cmp eax, 0x2710
ja 0x4b5bc9
test eax, eax
je 0x4b5b91
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6d3168]
push ecx
push eax
lea eax, [ebp - 0xc8]
push edx
push eax
call fcn.005e7bd3
add esp, 0x10
jmp 0x4b5bdd
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x4b5bb2
mov ecx, dword [0x6d3164]
push eax
lea edx, [ebp - 0xc8]
push ecx
push edx
call fcn.005e7bd3
add esp, 0x10
jmp 0x4b5bdd
mov eax, dword [0x6d3160]
lea ecx, [ebp - 0xc8]
push eax
push ecx
call fcn.005e7bd3
add esp, 0xc
jmp 0x4b5bdd
lea edx, [ebp - 0xc8]
push 0x6a0fa0
push edx
call fcn.005e7bd3
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.005fdcd2
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x494]
test eax, eax
jg 0x4b5c46
jl 0x4b5c0f
mov eax, dword [ebx + 0x490]
test eax, eax
ja 0x4b5c46
mov eax, dword [ebx + 0xa4c]
cmp eax, 0x7565
jne 0x4b5c25
mov edx, dword [0x6d2e64]
push edx
jmp 0x4b5c36
cmp eax, 0x7540
je 0x4b5c46
test eax, eax
je 0x4b5c46
mov eax, dword [0x6d2e5c]
push eax
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push 4
push esi
call fcn.005fdcd2
jmp 0x4b5c49
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 0x4b5c66
mov ecx, dword [ebp - 0x20]
push edx
push 7
push esi
call fcn.005fdcd2
lea edx, [ebx + 0x94]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b5c86
mov ecx, dword [ebp - 0x20]
push edx
push 1
push esi
call fcn.005fdcd2
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4b615f
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 0x4b5d00
cmp eax, edi
je 0x4b5d00
push esi
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x4b5d00
mov eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x4b5d00
push eax
call fcn.005e71bf
mov edx, dword [ebp - 0x1c]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, esi
jb 0x4b5d00
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040e580
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 0x4b5d49
lea ecx, [ebp - 0x1c]
call fcn.00401070
cmp esi, edi
je 0x4b5d49
push esi
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x4b5d49
push esi
call fcn.005e71bf
lea ecx, [eax + eax + 2]
push ecx
call fcn.005ffe3f
add esp, 8
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x4b5d49
push esi
call fcn.005e71bf
mov edx, dword [ebp - 0x1c]
push esi
push edx
mov dword [ebp - 0x14], eax
call fcn.005e7389
add esp, 0xc
mov eax, dword [0x6d2358]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x4b5f40
mov eax, dword [0x6d21c0]
test eax, eax
je 0x4b5d68
mov dword [ebp + 0x10], eax
jmp 0x4b5d72
mov dword [ebp + 0x10], 0x6d21c4
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6d21d0]
test esi, esi
jne 0x4b5d81
mov esi, 0x6d21d4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], esi
test ecx, ecx
je 0x4b5f40
test esi, esi
je 0x4b5f40
test eax, eax
je 0x4b5f40
push eax
push esi
call fcn.005e77e4
add esp, 8
test eax, eax
je 0x4b5f40
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.005e7a20
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4b5dde
push esi
inc ebx
call fcn.005e71bf
lea eax, [edi + eax*2]
push esi
push eax
call fcn.005e7a20
add esp, 0xc
mov edi, eax
jmp 0x4b5dc2
test ebx, ebx
je 0x4b5f40
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.005e71bf
mov edx, dword [ebp + 0x10]
mov edi, eax
push edx
call fcn.005e71bf
add esp, 8
cmp eax, edi
jbe 0x4b5e6d
lea ecx, [ebp - 0x1c]
call fcn.00401070
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x4b5e2c
lea edi, [ebp - 0x40]
push esi
call fcn.005e71bf
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.005e71bf
mov edx, eax
push edi
sub edx, esi
imul edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.005e71bf
mov ecx, dword [ebp - 0x2c]
add ecx, eax
lea edx, [ecx + ecx + 2]
push edx
call fcn.005ffe3f
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x4b5e70
jmp 0x4b5f34
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4b5e7a
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
push ecx
push eax
call fcn.005e7a20
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b5ef7
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.005e71bf
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.005e71bf
mov esi, dword [ebp - 0x34]
lea ebx, [ebx + eax*2]
push esi
call fcn.005e71bf
mov ecx, dword [ebp - 0x2c]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x28], eax
call fcn.005e7a20
add esp, 0x14
jmp 0x4b5e8a
mov esi, dword [ebp - 0x28]
push esi
call fcn.005e71bf
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.005e71bf
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e71bf
add esp, 0xc
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call fcn.00401070
mov eax, dword [0x6d235c]
test eax, eax
je 0x4b6133
mov eax, dword [0x6d21a0]
test eax, eax
je 0x4b5f5b
mov dword [ebp + 0x10], eax
jmp 0x4b5f65
mov dword [ebp + 0x10], 0x6d21a4
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6d21b0]
test esi, esi
jne 0x4b5f74
mov esi, 0x6d21b4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], esi
test ecx, ecx
je 0x4b613a
test esi, esi
je 0x4b6133
test eax, eax
je 0x4b6133
push eax
push esi
call fcn.005e77e4
add esp, 8
test eax, eax
je 0x4b6133
mov edx, dword [ebp - 0x1c]
push esi
push edx
call fcn.005e7a20
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4b5fd1
push esi
inc ebx
call fcn.005e71bf
lea eax, [edi + eax*2]
push esi
push eax
call fcn.005e7a20
add esp, 0xc
mov edi, eax
jmp 0x4b5fb5
test ebx, ebx
je 0x4b6133
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.005e71bf
mov ecx, dword [ebp + 0x10]
mov edi, eax
push ecx
call fcn.005e71bf
add esp, 8
cmp eax, edi
jbe 0x4b6060
lea ecx, [ebp - 0x1c]
call fcn.00401070
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x4b601f
lea edi, [ebp - 0x40]
push esi
call fcn.005e71bf
mov edx, dword [ebp + 0x10]
mov esi, eax
push edx
call fcn.005e71bf
mov edx, eax
push edi
sub edx, esi
imul edx, ebx
mov dword [ebp - 0x2c], edx
call fcn.005e71bf
mov ecx, dword [ebp - 0x2c]
add ecx, eax
lea edx, [ecx + ecx + 2]
push edx
call fcn.005ffe3f
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x4b6063
jmp 0x4b6127
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4b606d
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
push ecx
push eax
call fcn.005e7a20
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b60ea
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.005e71bf
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.005e71bf
mov esi, dword [ebp - 0x34]
lea ebx, [ebx + eax*2]
push esi
call fcn.005e71bf
mov ecx, dword [ebp - 0x2c]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x28], eax
call fcn.005e7a20
add esp, 0x14
jmp 0x4b607d
mov esi, dword [ebp - 0x28]
push esi
call fcn.005e71bf
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.005e71bf
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e71bf
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 0x4b613d
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.0044f770
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 0x4b617c
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
push eax
push 0xa
push edi
mov ecx, esi
call fcn.005fdcd2
jmp 0x4b6182
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
cmp dword [ebx + 0x8d4], 3
jne 0x4b619c
mov edx, dword [0x6d3194]
mov ecx, esi
push edx
push 4
push edi
call fcn.005fdcd2
mov al, byte [ebp + 0xc]
test al, al
je 0x4b61c9
test edi, edi
jl 0x4b61c9
push 8
call fcn.005ffe3f
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], esi
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x4b42b0
call fcn.0060403a
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