Function at 0x46da70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d17cb
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x75d454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x40], 0
mov eax, dword [0x4d9590]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0046c110
mov ebx, dword [ebp + 8]
mov eax, dword [0x4d9590]
mov dword [ebx], eax
mov ecx, ebx
mov dword [ebp - 0x40], 1
call fcn.0046c110
mov edi, dword [0x4d955c]
push 0
push 0x4da0cc
call edi
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [0x75e884]
mov byte [ebp - 4], 2
test eax, eax
jne 0x46db18
push 0x230
call fcn.004c3b7c
add esp, 4
mov dword [ebp - 0x50], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00465630
mov byte [ebp - 4], 2
mov dword [0x75e884], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0044b7f0
push eax
lea ecx, [ebp - 0x14]
call dword [0x4d9550]
lea ecx, [ebp - 0x3c]
call dword [0x4d9548]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call dword [0x4d9540]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
push ecx
push str.qstrCountryCode:
mov ecx, eax
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9628]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call dword [0x4d9580]
push 0
push 0x4da0cc
call edi
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [0x75e884]
mov byte [ebp - 4], 5
test eax, eax
jne 0x46dbbd
push 0x230
call fcn.004c3b7c
add esp, 4
mov dword [ebp - 0x50], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00465630
mov byte [ebp - 4], 5
mov dword [0x75e884], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0046d870
push eax
lea ecx, [ebp - 0x18]
call dword [0x4d9550]
lea ecx, [ebp - 0x3c]
call dword [0x4d9548]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call dword [0x4d9540]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
push ecx
push str.qstrStateCode:
mov ecx, eax
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9628]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call dword [0x4d9580]
push 0
push 0x4da0cc
call edi
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [0x75e884]
mov byte [ebp - 4], 8
test eax, eax
jne 0x46dc62
push 0x230
call fcn.004c3b7c
add esp, 4
mov dword [ebp - 0x50], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00465630
mov byte [ebp - 4], 8
mov dword [0x75e884], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0046d7b0
push eax
lea ecx, [ebp - 0x38]
call dword [0x4d9550]
lea ecx, [ebp - 0x3c]
call dword [0x4d9548]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call dword [0x4d9540]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push ecx
push str.qstrCityCode:
mov ecx, eax
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9628]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call dword [0x4d9580]
push 0
push 0x4da0cc
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [0x75e884]
mov byte [ebp - 4], 0xb
test eax, eax
jne 0x46dd07
push 0x230
call fcn.004c3b7c
add esp, 4
mov dword [ebp - 0x50], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00465630
mov byte [ebp - 4], 0xb
mov dword [0x75e884], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0046d7f0
push eax
lea ecx, [ebp - 0x24]
call dword [0x4d9550]
lea ecx, [ebp - 0x3c]
call dword [0x4d9548]
push 0
push 0x4da0cc
call edi
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [0x75e884]
mov byte [ebp - 4], 0xd
test eax, eax
jne 0x46dd67
push 0x230
call fcn.004c3b7c
add esp, 4
mov dword [ebp - 0x50], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00465630
mov byte [ebp - 4], 0xd
mov dword [0x75e884], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0046d830
push eax
lea ecx, [ebp - 0x20]
call dword [0x4d9550]
lea ecx, [ebp - 0x3c]
call dword [0x4d9548]
mov ecx, dword [ebp + 0x10]
dec ecx
cmp ecx, 4
ja case.default.0x46dd92
jmp dword [ecx*4 + 0x46e6c8]
lea edi, [esi + 0x5c]
push edi
lea ecx, [ebp - 0x10]
call fcn.004666b0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call dword [0x4d9540]
mov esi, eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call dword [0x4d9570]
push eax
mov ecx, esi
call dword [0x4d9764]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call dword [0x4d9580]
mov esi, dword [0x4d955c]
push 0
push 0x4da0cc
call esi
mov dword [ebp - 0x30], eax
push 0
push 0x4da0cc
mov byte [ebp - 4], 0x10
call esi
add esp, 0x10
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x11
xor esi, esi
call dword [0x4d9570]
test eax, eax
je 0x46de98
nop dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp ecx, 1
je 0x46de39
test ecx, ecx
je 0x46de39
push dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00483510
push esi
lea ecx, [ebp - 0x10]
call dword [0x4d9574]
mov edi, dword [eax]
test edi, edi
je 0x46de8a
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00484900
push eax
lea ecx, [ebp + 0x14]
call dword [0x4d9550]
lea ecx, [ebp - 0x3c]
call dword [0x4d9548]
push 0
push 0
push dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
call dword [0x4d95dc]
cmp eax, 0xffffffff
je 0x46de8a
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
push eax
mov ecx, ebx
call fcn.0047dc00
lea ecx, [ebp - 0x10]
inc esi
call dword [0x4d9570]
cmp esi, eax
jb 0x46de20
lea ecx, [ebp + 0x14]
call dword [0x4d9548]
lea ecx, [ebp - 0x30]
jmp 0x46e56e
lea eax, [esi + 0x60]
push eax
lea ecx, [ebp - 0x10]
call fcn.004666b0
push 0
push 0x4da0cc
call edi
mov dword [ebp + 0x14], eax
push 0
push 0x4da0cc
mov byte [ebp - 4], 0x12
call edi
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
xor edi, edi
call dword [0x4d9570]
test eax, eax
je 0x46dfcf
nop dword [eax + eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp ecx, 1
je 0x46df09
test ecx, ecx
je 0x46df09
push dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00483510
push edi
lea ecx, [ebp - 0x10]
call dword [0x4d9574]
mov esi, dword [eax]
test esi, esi
je 0x46dfbd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46df40
lea eax, [ebp - 0x3c]
push eax
call fcn.0044b960
push eax
lea ecx, [ebp + 0x14]
call dword [0x4d9550]
lea ecx, [ebp - 0x3c]
call dword [0x4d9548]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0
je 0x46df7c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x46df7c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [0x4d9554]
add esp, 8
test al, al
jne 0x46df7c
lea eax, [ebp - 0x14]
push eax
push str.random
call fcn.00460eb0
add esp, 8
test al, al
je 0x46dfbd
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00484900
push eax
lea ecx, [ebp - 0x1c]
call dword [0x4d9550]
lea ecx, [ebp - 0x34]
call dword [0x4d9548]
push 0
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call dword [0x4d95dc]
cmp eax, 0xffffffff
je 0x46dfbd
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
mov ecx, ebx
call fcn.0047dc00
lea ecx, [ebp - 0x10]
inc edi
call dword [0x4d9570]
cmp edi, eax
jb 0x46def0
lea ecx, [ebp - 0x1c]
jmp 0x46e565
lea eax, [esi + 0x64]
push eax
lea ecx, [ebp - 0x10]
call fcn.004666b0
push 0
push 0x4da0cc
call edi
mov dword [ebp - 0x1c], eax
push 0
push 0x4da0cc
mov byte [ebp - 4], 0x14
call edi
mov dword [ebp + 0x14], eax
push 0
push 0x4da0cc
mov byte [ebp - 4], 0x15
call edi
add esp, 0x18
mov dword [ebp - 0x34], eax
xor edi, edi
mov byte [ebp - 4], 0x16
xor esi, esi
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x3c], esi
call dword [0x4d9570]
test eax, eax
je 0x46e193
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp ecx, 1
je 0x46e050
test ecx, ecx
je 0x46e050
push dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00483510
push esi
lea ecx, [ebp - 0x10]
call dword [0x4d9574]
mov esi, dword [eax]
test esi, esi
je 0x46e17b
mov edi, dword [esi + 8]
test edi, edi
je 0x46e0ac
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0044b960
push eax
lea ecx, [ebp + 0x14]
call dword [0x4d9550]
lea ecx, [ebp - 0x44]
call dword [0x4d9548]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x46e0ac
lea eax, [ebp - 0x48]
push eax
call fcn.0044b960
push eax
lea ecx, [ebp - 0x1c]
call dword [0x4d9550]
lea ecx, [ebp - 0x48]
call dword [0x4d9548]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x46e0ec
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x46e0ec
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x4d9554]
add esp, 8
test al, al
jne 0x46e0ec
lea eax, [ebp - 0x14]
push eax
push str.random
call fcn.00460eb0
add esp, 8
test al, al
je 0x46e178
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x28]
inc edi
mov dword [ebp - 0x28], edi
cmp dword [eax + 4], 0
je 0x46e12f
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x46e12f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [0x4d9554]
add esp, 8
test al, al
jne 0x46e12f
lea eax, [ebp - 0x18]
push eax
push str.random
call fcn.00460eb0
add esp, 8
test al, al
je 0x46e17b
inc dword [ebp - 0x2c]
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.00484900
push eax
lea ecx, [ebp - 0x34]
call dword [0x4d9550]
lea ecx, [ebp - 0x4c]
call dword [0x4d9548]
push 0
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
call dword [0x4d95dc]
cmp eax, 0xffffffff
je 0x46e17b
inc dword [ebp - 0x30]
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
mov dword [ebp - 0x50], esi
call fcn.0047dc00
jmp 0x46e17b
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
inc esi
mov dword [ebp - 0x3c], esi
call dword [0x4d9570]
cmp esi, eax
jb 0x46e037
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov esi, dword [0x4d9540]
mov ecx, eax
call esi
push edi
push str.nCountrySize
mov ecx, eax
mov byte [ebp - 4], 0x17
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9764]
mov edi, dword [0x4d9580]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x16
call edi
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call esi
push dword [ebp - 0x2c]
mov ecx, eax
mov byte [ebp - 4], 0x18
push str.nStateSize
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9764]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x16
call edi
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call esi
push dword [ebp - 0x30]
mov ecx, eax
mov byte [ebp - 4], 0x19
push str.nCitySize
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9764]
lea ecx, [ebp - 0x50]
call edi
lea ecx, [ebp - 0x34]
call dword [0x4d9548]
lea ecx, [ebp + 0x14]
call dword [0x4d9548]
lea ecx, [ebp - 0x1c]
jmp 0x46e56e
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x46e2a8
cmp eax, 2
jne 0x46e27c
lea eax, [esi + 0xb8]
jmp 0x46e2ae
cmp eax, 3
jne 0x46e289
lea eax, [esi + 0xbc]
jmp 0x46e2ae
cmp eax, 4
jne 0x46e296
lea eax, [esi + 0xc0]
jmp 0x46e2ae
cmp eax, 6
jne 0x46e2a3
lea eax, [esi + 0xc4]
jmp 0x46e2ae
cmp eax, 0xb
jne 0x46e2b7
lea eax, [esi + 0xb4]
push eax
lea ecx, [ebp - 0x10]
call fcn.004666b0
lea ecx, [ebp - 0x10]
call dword [0x4d9570]
test eax, eax
jne 0x46e2eb
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x46e2df
push str.random
lea ecx, [ebp - 0x14]
call dword [0x4d9690]
test al, al
je 0x46e2eb
lea eax, [esi + 0x68]
push eax
lea ecx, [ebp - 0x10]
call fcn.004666b0
push 0
push 0x4da0cc
call edi
mov dword [ebp + 0x14], eax
push 0
push 0x4da0cc
mov byte [ebp - 4], 0x1a
call edi
add esp, 0x10
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1b
xor edi, edi
call dword [0x4d9570]
test eax, eax
je 0x46e562
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp ecx, 1
je 0x46e33a
test ecx, ecx
je 0x46e33a
push dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00483510
push edi
lea ecx, [ebp - 0x10]
call dword [0x4d9574]
mov esi, dword [eax]
test esi, esi
je 0x46e3e0
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.0044b960
push eax
lea ecx, [ebp + 0x14]
call dword [0x4d9550]
lea ecx, [ebp - 0x50]
call dword [0x4d9548]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0
je 0x46e39f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [0x4d9554]
add esp, 8
test al, al
jne 0x46e39f
lea eax, [ebp - 0x24]
push eax
push str.random
call fcn.00460eb0
add esp, 8
test al, al
je 0x46e3e0
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.00484900
push eax
lea ecx, [ebp - 0x34]
call dword [0x4d9550]
lea ecx, [ebp - 0x4c]
call dword [0x4d9548]
push 0
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
call dword [0x4d95dc]
cmp eax, 0xffffffff
je 0x46e3e0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
mov ecx, ebx
call fcn.0047dc00
lea ecx, [ebp - 0x10]
inc edi
call dword [0x4d9570]
cmp edi, eax
jb 0x46e321
jmp 0x46e562
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x46e407
lea eax, [esi + 0xc8]
jmp 0x46e439
cmp eax, 2
jne 0x46e414
lea eax, [esi + 0xcc]
jmp 0x46e439
cmp eax, 3
jne 0x46e421
lea eax, [esi + 0xd0]
jmp 0x46e439
cmp eax, 4
jne 0x46e42e
lea eax, [esi + 0xd4]
jmp 0x46e439
cmp eax, 6
jne 0x46e442
lea eax, [esi + 0xd8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004666b0
lea ecx, [ebp - 0x10]
call dword [0x4d9570]
test eax, eax
jne 0x46e45b
lea eax, [esi + 0x6c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004666b0
push 0
push 0x4da0cc
call edi
mov dword [ebp + 0x14], eax
push 0
push 0x4da0cc
mov byte [ebp - 4], 0x1c
call edi
add esp, 0x10
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1d
xor edi, edi
call dword [0x4d9570]
test eax, eax
je 0x46e562
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp ecx, 1
je 0x46e4aa
test ecx, ecx
je 0x46e4aa
push dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00483510
push edi
lea ecx, [ebp - 0x10]
call dword [0x4d9574]
mov esi, dword [eax]
test esi, esi
je 0x46e550
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.0044b960
push eax
lea ecx, [ebp + 0x14]
call dword [0x4d9550]
lea ecx, [ebp - 0x50]
call dword [0x4d9548]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0
je 0x46e50f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [0x4d9554]
add esp, 8
test al, al
jne 0x46e50f
lea eax, [ebp - 0x20]
push eax
push str.random
call fcn.00460eb0
add esp, 8
test al, al
je 0x46e550
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.00484900
push eax
lea ecx, [ebp - 0x34]
call dword [0x4d9550]
lea ecx, [ebp - 0x4c]
call dword [0x4d9548]
push 0
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
call dword [0x4d95dc]
cmp eax, 0xffffffff
je 0x46e550
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
mov ecx, ebx
call fcn.0047dc00
lea ecx, [ebp - 0x10]
inc edi
call dword [0x4d9570]
cmp edi, eax
jb 0x46e491
lea ecx, [ebp - 0x34]
call dword [0x4d9548]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xd
call dword [0x4d9548]
lea eax, [ebp + 0x14]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call dword [0x4d9540]
push dword [ebp + 0xc]
mov ecx, eax
mov byte [ebp - 4], 0x1e
push str.Search_Key:
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9628]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xd
call dword [0x4d9580]
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call dword [0x4d9540]
push dword [ebp + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0x1f
push str.Search_enumValue:
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9764]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xd
call dword [0x4d9580]
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
call dword [0x4d953c]
mov ecx, eax
call dword [0x4d9540]
mov esi, eax
mov ecx, ebx
mov byte [ebp - 4], 0x20
call dword [0x4d9570]
push 0x4dc8c4
push eax
push str.Search_result_size:
mov ecx, esi
call dword [0x4d9588]
mov ecx, eax
call dword [0x4d9764]
mov ecx, eax
call dword [0x4d9588]
lea ecx, [ebp + 0xc]
call dword [0x4d9580]
lea ecx, [ebp - 0x20]
call dword [0x4d9548]
lea ecx, [ebp - 0x24]
call dword [0x4d9548]
lea ecx, [ebp - 0x38]
call dword [0x4d9548]
lea ecx, [ebp - 0x18]
call dword [0x4d9548]
lea ecx, [ebp - 0x14]
call dword [0x4d9548]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0x21
mov ecx, dword [eax]
test ecx, ecx
je 0x46e6a8
cmp ecx, 0xffffffff
je 0x46e6b2
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x46e6b2
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4d9568]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10