Function at 0x48b7c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c12db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov al, byte [ebp + 0x10]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
je 0x48b9f5
mov eax, dword [edi + 0x8c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
mov eax, dword [eax + 0x1c]
push 0x110a
push eax
call ebx
mov esi, eax
test esi, esi
je 0x48b9f5
mov eax, dword [edi + 0x8c]
push esi
push 3
push 0x110a
mov ecx, dword [eax + 0x1c]
push ecx
call ebx
mov ecx, dword [edi + 0x8c]
mov edx, dword [ecx + 0x44]
cmp esi, edx
je 0x48b8ec
cmp esi, dword [ecx + 0x3c]
je 0x48b8ec
mov ebx, dword [ecx + 0x40]
cmp esi, ebx
je 0x48b8ec
cmp eax, edx
je 0x48b8ec
cmp eax, dword [ecx + 0x3c]
je 0x48b8ec
cmp eax, ebx
je 0x48b8ec
mov edx, dword [ecx + 0x48]
cmp esi, edx
jne 0x48b888
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x9c0]
test eax, eax
jg 0x48b9a9
jmp 0x48b8a3
cmp eax, edx
jne 0x48b8b9
push esi
call fcn.0059fdfa
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x9c0]
cmp ecx, eax
je 0x48b9a9
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 0x48b8d3
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x424]
test eax, eax
jg 0x48b9a9
jmp 0x48b8a3
cmp eax, edx
jne 0x48b9f5
push esi
call fcn.0059fdfa
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x424]
jmp 0x48b89b
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.0048de30
mov ebx, dword [ebp - 0x18]
push esi
mov byte [ebp + 0x13], al
mov ecx, dword [ebx + 0x8c]
call fcn.0048dd70
mov edi, eax
mov al, byte [ebp + 0x13]
test al, al
je 0x48b93f
mov ecx, dword [ebx + 0x8c]
push esi
call fcn.0059fdfa
mov ebx, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebx + 0x2e4], eax
sete cl
mov eax, ecx
jmp 0x48b944
mov ebx, dword [ebp + 8]
xor eax, eax
test edi, edi
je 0x48b99a
mov ecx, 3
cmp edi, ecx
jne 0x48b957
test eax, eax
jne 0x48b99a
jmp 0x48b989
cmp edi, 1
jne 0x48b971
cmp dword [ebx + 0x868], ecx
je 0x48b989
mov cl, byte [ebp + 0x13]
test cl, cl
je 0x48b99a
test eax, eax
jne 0x48b99a
jmp 0x48b989
cmp edi, 2
jne 0x48b989
cmp dword [ebx + 0x868], ecx
jne 0x48b989
mov cl, byte [ebp + 0x13]
test cl, cl
je 0x48b99a
test eax, eax
jne 0x48b99a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x48b8a3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401070
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx + 0x420]
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 edx, [ebp - 0x50]
mov ecx, ebx
push edx
mov byte [ebp - 4], 2
call fcn.0055f870
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x48b9fa
mov dword [ebp - 0x90], eax
jmp 0x48ba06
mov ebx, dword [ebp + 8]
jmp 0x48b9a9
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00589432
mov edx, dword [edi + 0x1c]
add esp, 4
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x8c], eax
push ecx
push 0
push 0x104d
push edx
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 0x48baff
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48baff
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov word [ebp - 0x2c], di
mov al, byte [ebx + 0x2ee]
lea ecx, [ebp - 0x30]
neg al
sbb eax, eax
mov byte [ebp - 4], 3
and eax, 0xfde9
mov dword [ebp + 0x10], eax
call fcn.00401070
cmp esi, edi
je 0x48bad3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48bad3
mov ecx, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push ecx
call edi
test eax, eax
mov dword [ebp - 0x28], eax
je 0x48bad3
lea edx, [eax + eax + 2]
push edx
call fcn.005a1be9
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x48bada
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 0x48badd
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.0043dfb0
add esp, 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
mov esi, dword [ebx + 0x428]
mov edi, dword [ebx + 0x42c]
mov eax, esi
or eax, edi
je 0x48bf0d
mov dword [ebp - 0x44], 0x5da770
push 0
push 0x400
push edi
push esi
mov byte [ebp - 4], 4
call fcn.0058b2f0
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.0058b240
mov ebx, eax
and ebx, 0x800003ff
jns 0x48bb60
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.0058b240
and eax, 0x800003ff
jns 0x48bb94
dec eax
or eax, 0xfffffc00
inc eax
push 0
push 0x40000000
push edi
push esi
mov dword [ebp - 0x20], eax
call fcn.0058b240
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 0x48bbe2
mov edi, 0x65f3d4
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 0x48bcae
cmp esi, 0x3e7
jg 0x48bcae
test esi, esi
jne 0x48bc6c
cmp ebx, 0x3e7
jg 0x48bc6c
test ebx, ebx
je 0x48bc4c
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 [0x688518]
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 0x48bce6
mov eax, dword [0x688514]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x70]
push str._d___s
push edx
call fcn.00589e0a
add esp, 0x10
jmp 0x48bcf7
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 [0x68851c]
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 0x48bcef
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 [0x688520]
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.00589e0a
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.0059fa7f
mov edi, dword [ebp + 8]
cmp dword [edi + 0x868], 3
je 0x48bf01
lea edx, [ebp + 0x10]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x48bd56
mov edi, 0x65f3d4
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 + 0x434]
mov ecx, dword [edi + 0x430]
test eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jl 0x48bdca
jg 0x48bd72
test ecx, ecx
jbe 0x48bdca
fild qword [ebp - 0x24]
fmul dword [0x5dc500]
fild qword [edi + 0x428]
fdivp st(1)
fld st(0)
call fcn.00589918
mov esi, eax
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fsubr st(1)
fmul dword [0x5dc500]
call fcn.00589918
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.00589e0a
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.0059fa7f
mov eax, dword [edi + 0x440]
cmp eax, 0xa
jle 0x48bf01
mov esi, dword [edi + 0x428]
mov ecx, dword [edi + 0x42c]
mov edx, dword [edi + 0x430]
mov edi, dword [edi + 0x434]
cmp ecx, edi
jl 0x48bf01
jg 0x48be03
cmp esi, edx
jb 0x48bf01
mov ebx, esi
or ebx, ecx
je 0x48bf01
mov dword [ebp - 0x20], 0x5da770
sub esi, edx
mov byte [ebp - 4], 5
cdq
sbb ecx, edi
push edx
push eax
push ecx
push esi
call fcn.0058b240
mov esi, edx
mov edi, eax
test esi, esi
jg 0x48be44
jl 0x48be34
test edi, edi
jae 0x48be44
mov edx, dword [0x688638]
lea eax, [ebp - 0x70]
push edx
push eax
jmp 0x48bee7
push 0
push 0x3c
push esi
push edi
call fcn.0058b2f0
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.0058b240
push 0
push 0x3c
push edx
push eax
call fcn.0058b2f0
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.0058b240
test edx, edx
jg 0x48bede
jl 0x48be8e
cmp eax, 0x2710
ja 0x48bede
test eax, eax
je 0x48beac
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x688690]
push ecx
push eax
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00589e0a
add esp, 0x10
jmp 0x48beef
mov eax, dword [ebp - 0x14]
push ebx
test eax, eax
je 0x48beca
mov ecx, dword [0x68868c]
push eax
lea edx, [ebp - 0x70]
push ecx
push edx
call fcn.00589e0a
add esp, 0x10
jmp 0x48beef
mov eax, dword [0x688688]
lea ecx, [ebp - 0x70]
push eax
push ecx
call fcn.00589e0a
add esp, 0xc
jmp 0x48beef
lea edx, [ebp - 0x70]
push 0x65be5c
push edx
call fcn.00589e0a
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.0059fa7f
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
jmp 0x48c25d
mov eax, dword [ebx + 0x44]
cmp eax, 4
je 0x48bf1e
cmp eax, 5
jne 0x48c25d
fld qword [ebx + 0x320]
fcomp qword [0x5da768]
fnstsw ax
test ah, 0x41
je 0x48bf4f
mov eax, dword [ebx + 0x354]
test eax, eax
jl 0x48c25d
jg 0x48bf4f
mov eax, dword [ebx + 0x350]
test eax, eax
jbe 0x48c25d
fld qword [ebx + 0x320]
fcomp qword [0x5da768]
fnstsw ax
test ah, 0x41
jne 0x48bf73
fld qword [ebx + 0x320]
call fcn.00589918
mov esi, eax
mov edi, edx
jmp 0x48bf7f
mov esi, dword [ebx + 0x350]
mov edi, dword [ebx + 0x354]
test edi, edi
jl 0x48c06f
jg 0x48bf91
test esi, esi
jbe 0x48c06f
mov dword [ebp - 0x44], 0x5da770
push 0
push 0x3c
push edi
push esi
mov byte [ebp - 4], 6
call fcn.0058b2f0
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.0058b240
push 0
push 0x3c
push edx
push eax
call fcn.0058b2f0
push 0
push 0xe10
push edi
push esi
mov dword [ebp + 0x10], eax
call fcn.0058b240
test edx, edx
jg 0x48c03f
jl 0x48bfe6
cmp eax, 0x2710
ja 0x48c03f
test eax, eax
je 0x48c007
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x688690]
push ecx
push eax
lea eax, [ebp - 0x124]
push edx
push eax
call fcn.00589e0a
add esp, 0x10
jmp 0x48c053
mov eax, dword [ebp + 0x10]
push ebx
test eax, eax
je 0x48c028
mov ecx, dword [0x68868c]
push eax
lea edx, [ebp - 0x124]
push ecx
push edx
call fcn.00589e0a
add esp, 0x10
jmp 0x48c053
mov eax, dword [0x688688]
lea ecx, [ebp - 0x124]
push eax
push ecx
call fcn.00589e0a
add esp, 0xc
jmp 0x48c053
lea edx, [ebp - 0x124]
push 0x65be5c
push edx
call fcn.00589e0a
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.0059fa7f
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x868], 3
je 0x48c25d
fld qword [ebx + 0x438]
fcomp qword [0x5da768]
fnstsw ax
test ah, 0x41
jne 0x48c25d
lea edx, [ebp + 0x10]
push 3
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x48c0cd
mov edi, 0x65f3d4
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 + 0x438]
fmul qword [0x5dc508]
fdiv qword [ebx + 0x320]
fld st(0)
call fcn.00589918
mov esi, eax
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fsubr st(1)
fmul qword [0x5dc508]
call fcn.00589918
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.00589e0a
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add esp, 0x14
lea eax, [ebp - 0x70]
push eax
push 4
push esi
call fcn.0059fa7f
mov eax, dword [ebx + 0x440]
cmp eax, 0xa
mov dword [ebp - 0x14], eax
jle 0x48c260
mov eax, dword [ebx + 0x434]
mov ecx, dword [ebx + 0x430]
test eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jl 0x48c260
jg 0x48c15c
test ecx, ecx
jbe 0x48c260
fld qword [ebx + 0x320]
fdiv qword [ebx + 0x438]
fsub qword [0x5dc4f8]
fild qword [ebp - 0x24]
fmulp st(1)
fidiv dword [ebp - 0x14]
call fcn.00589918
mov edi, eax
mov esi, edx
mov dword [ebp - 0x44], 0x5da770
test esi, esi
mov byte [ebp - 4], 7
jg 0x48c1a4
jl 0x48c194
test edi, edi
jae 0x48c1a4
mov ecx, dword [0x688638]
lea edx, [ebp - 0x70]
push ecx
push edx
jmp 0x48c23f
push 0
push 0x3c
push esi
push edi
call fcn.0058b2f0
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.0058b240
push 0
push 0x3c
push edx
push eax
call fcn.0058b2f0
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.0058b240
test edx, edx
jg 0x48c236
jl 0x48c1ef
cmp eax, 0x2710
ja 0x48c236
test eax, eax
je 0x48c200
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x688690]
push ecx
push eax
jmp 0x48c212
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
test eax, eax
push ecx
je 0x48c221
mov edx, dword [0x68868c]
push eax
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00589e0a
add esp, 0x10
jmp 0x48c247
mov edx, dword [0x688688]
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00589e0a
add esp, 0xc
jmp 0x48c247
lea ecx, [ebp - 0x70]
push 0x65be5c
push ecx
call fcn.00589e0a
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.0059fa7f
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x434]
test eax, eax
jg 0x48c2a9
jl 0x48c276
mov eax, dword [ebx + 0x430]
test eax, eax
ja 0x48c2a9
mov eax, dword [ebx + 0x9ac]
cmp eax, 0x7565
jne 0x48c28c
mov ecx, dword [0x68838c]
push ecx
jmp 0x48c29e
cmp eax, 0x7540
je 0x48c2a9
test eax, eax
je 0x48c2a9
mov edx, dword [0x688384]
push edx
mov ecx, dword [ebp - 0x18]
push 4
push esi
call fcn.0059fa7f
lea edx, [ebx + 0x64]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48c2c6
mov ecx, dword [ebp - 0x18]
push edx
push 7
push esi
call fcn.0059fa7f
lea edx, [ebx + 0x94]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48c2e6
mov ecx, dword [ebp - 0x18]
push edx
push 1
push esi
call fcn.0059fa7f
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x48c5cd
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 0x48c367
cmp eax, edi
je 0x48c367
push esi
call fcn.00589432
add esp, 4
test eax, eax
je 0x48c367
mov eax, dword [ebp - 0x30]
cmp eax, esi
ja 0x48c367
push eax
call fcn.00589432
mov ecx, dword [ebp - 0x30]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, esi
jb 0x48c367
push esi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x78], di
call fcn.00401ee0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x30]
call fcn.00401ee0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x48c3b0
lea ecx, [ebp - 0x30]
call fcn.00401070
cmp esi, edi
je 0x48c3b0
push esi
call fcn.00589432
add esp, 4
test eax, eax
je 0x48c3b0
push esi
call fcn.00589432
lea eax, [eax + eax + 2]
push eax
call fcn.005a1be9
add esp, 8
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x48c3b0
push esi
call fcn.00589432
mov ecx, dword [ebp - 0x30]
push esi
push ecx
mov dword [ebp - 0x28], eax
call fcn.005895ca
add esp, 0xc
mov eax, dword [0x687b58]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x48c596
mov eax, dword [0x6879c0]
test eax, eax
je 0x48c3cf
mov dword [ebp + 0x10], eax
jmp 0x48c3d9
mov dword [ebp + 0x10], 0x6879c4
mov eax, dword [ebp + 0x10]
mov esi, dword [0x6879d0]
test esi, esi
jne 0x48c3e8
mov esi, 0x6879d4
test esi, esi
mov dword [ebp - 0x14], esi
je 0x48c596
test eax, eax
je 0x48c596
push eax
push esi
call fcn.0058993f
add esp, 8
test eax, eax
je 0x48c596
mov edx, dword [ebp - 0x30]
push esi
push edx
call fcn.00589c57
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x48c43a
push esi
inc ebx
call fcn.00589432
lea edi, [edi + eax*2]
push esi
push edi
call fcn.00589c57
add esp, 0xc
mov edi, eax
jmp 0x48c41e
test ebx, ebx
je 0x48c596
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.00401ee0
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
push ecx
call fcn.00589432
push esi
mov edi, eax
call fcn.00589432
add esp, 8
cmp edi, eax
jbe 0x48c4c3
lea ecx, [ebp - 0x30]
call fcn.00401070
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x48c488
lea edi, [ebp - 0x3c]
mov edx, dword [ebp + 0x10]
push edx
call fcn.00589432
mov edx, eax
push esi
mov esi, edx
call fcn.00589432
push edi
sub esi, eax
imul esi, ebx
call fcn.00589432
add esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.005a1be9
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x30], ebx
jne 0x48c4c6
jmp 0x48c58a
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x48c4d0
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
push ecx
push eax
call fcn.00589c57
add esp, 8
test eax, eax
mov dword [ebp - 0x20], eax
je 0x48c54d
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.00589432
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.00589432
mov esi, dword [ebp - 0x14]
lea ebx, [ebx + eax*2]
push esi
call fcn.00589432
mov ecx, dword [ebp - 0x20]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x34], eax
call fcn.00589c57
add esp, 0x14
jmp 0x48c4e0
mov esi, dword [ebp - 0x34]
push esi
call fcn.00589432
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.00589432
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00589432
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 0x48c5a0
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.0043dfb0
add esp, 0x10
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
jmp 0x48c5d3
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x48c5e5
push eax
push 0xa
push edi
mov ecx, esi
call fcn.0059fa7f
cmp dword [ebx + 0x868], 3
jne 0x48c5ff
mov edx, dword [0x6886bc]
mov ecx, esi
push edx
push 4
push edi
call fcn.0059fa7f
mov al, byte [ebp + 0xc]
test al, al
je 0x48c62c
test edi, edi
jl 0x48c62c
push 8
call fcn.005a1be9
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], esi
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x48abf0
call fcn.005a5e4b
lea ecx, [ebp - 0x50]
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