Function at 0x40b9f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push esi
push edi
mov edi, ecx
push 0xc
mov dword [ebp - 0x20], edi
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x30], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40ba35
mov ecx, eax
call fcn.00485620
jmp 0x40ba37
xor eax, eax
or ebx, 0xffffffff
push 0x64
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [edi + 0x20], eax
call fcn.00485630
cmp dword [0x6684bc], esi
jne 0x40ba58
push str.DIFFICULTY:_Amateur
jmp 0x40ba5d
push str.DIFFICULTY:_Professional
call fcn.005585e0
mov eax, dword [0x66839c]
add esp, 4
cmp eax, esi
je 0x40ba7b
push str.Multiplayer_game
call fcn.005585e0
add esp, 4
mov eax, dword [0x6683bc]
cmp eax, 4
ja case.default.0x40ba89
jmp dword [eax*4 + 0x40c884]
push str.GAMETYPE:_Roam_mode.
jmp 0x40bb2f
mov eax, dword [0x6683c0]
lea ecx, [ebp - 0xbc]
push eax
push str.Checkpoint__d
push ecx
call fcn.00566480
add esp, 0xc
lea edx, [ebp - 0xbc]
push edx
push 0x5a5754
call fcn.005585e0
add esp, 8
jmp case.default.0x40ba89
mov eax, dword [0x6683c0]
lea ecx, [ebp - 0xbc]
push eax
push str.Circuit__d
push ecx
call fcn.00566480
add esp, 0xc
lea edx, [ebp - 0xbc]
push edx
push 0x5a5770
call fcn.005585e0
add esp, 8
jmp case.default.0x40ba89
mov eax, dword [0x6683c0]
lea ecx, [ebp - 0xbc]
push eax
push str.Blitz__d
push ecx
call fcn.00566480
add esp, 0xc
lea edx, [ebp - 0xbc]
push edx
push str.GAMETYPE:__s
call fcn.005585e0
add esp, 8
jmp case.default.0x40ba89
push str.GAMETYPE:_CR
call fcn.005585e0
add esp, 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov word [edi + 0x174a8], si
mov eax, dword [0x70f014]
cmp eax, esi
jne 0x40bb68
push str.positions.csv
call fcn.00485ae0
mov ecx, dword [edi + 0x20]
add esp, 4
push str.resetpositions.csv
call fcn.00485660
mov ecx, dword [edi + 0x20]
call fcn.00485830
test eax, eax
jne 0x40bd67
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
push esi
push ecx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x1c], 0xc3e50000
mov dword [ebp - 0x18], 0x40800000
mov dword [ebp - 0x14], 0xc4b2a000
mov dword [ebp - 0x10], 0x42860000
call fcn.004859a0
mov ecx, dword [edi + 0x20]
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x1c]
push esi
push edx
mov dword [ebp - 0x1c], 0x44734000
mov dword [ebp - 0x18], 0x40800000
mov dword [ebp - 0x14], 0xc47ac000
mov dword [ebp - 0x10], 0xc2f20000
call fcn.004859a0
mov ecx, dword [edi + 0x20]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x1c], 0xc3090000
mov dword [ebp - 0x18], 0x40e00000
mov dword [ebp - 0x14], 0xc46e8000
mov dword [ebp - 0x10], 0x432f0000
call fcn.004859a0
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
push esi
push ecx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x1c], 0xc4328000
mov dword [ebp - 0x18], 0x40000000
mov dword [ebp - 0x14], 0xc41b0000
mov dword [ebp - 0x10], 0x42440000
call fcn.004859a0
mov ecx, dword [edi + 0x20]
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x1c]
push esi
push edx
mov dword [ebp - 0x1c], 0xc3070000
mov dword [ebp - 0x18], 0x40000000
mov dword [ebp - 0x14], 0xc35d0000
mov dword [ebp - 0x10], 0x42b20000
call fcn.004859a0
mov ecx, dword [edi + 0x20]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x1c], 0x43d28000
mov dword [ebp - 0x18], 0x40000000
mov dword [ebp - 0x14], 0x435c0000
mov dword [ebp - 0x10], 0xc31e0000
call fcn.004859a0
mov dword [ebp - 0x1c], 0xc4614000
mov dword [ebp - 0x18], 0x40c00000
mov dword [ebp - 0x14], 0x43b40000
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
push esi
push ecx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x10], 0xc2b40000
call fcn.004859a0
mov ecx, dword [edi + 0x20]
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x1c]
push esi
push edx
mov dword [ebp - 0x1c], 0xc3310000
mov dword [ebp - 0x18], 0x40000000
mov dword [ebp - 0x14], 0x43cc8000
mov dword [ebp - 0x10], 0xbf800000
call fcn.004859a0
mov ecx, dword [edi + 0x20]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x1c], 0x40000000
mov dword [ebp - 0x18], 0x41400000
mov dword [ebp - 0x14], 0x44a9e000
mov dword [ebp - 0x10], 0x42da0000
call fcn.004859a0
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
push esi
push ecx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x1c], 0x446d4000
mov dword [ebp - 0x18], 0x40000000
mov dword [ebp - 0x14], 0x44974000
mov dword [ebp - 0x10], 0xc0a00000
call fcn.004859a0
mov ecx, dword [edi + 0x20]
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x1c]
push esi
push edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004859a0
mov esi, dword [0x60b12c]
push str.mmGame
mov dword [ebp - 0x2c], esi
call fcn.0055a480
add esp, 4
mov ecx, edi
call fcn.0040dbb0
mov eax, dword [0x6683f4]
cmp eax, 2
jne 0x40bd9a
mov dword [0x67b8f0], 0x5a57d8
jmp 0x40bdaf
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
and ecx, 0x5a57e0
mov dword [0x67b8f0], ecx
push 0
push 0x16
call fcn.0050e090
add esp, 4
mov ecx, esi
push eax
call fcn.00482800
call fcn.004dcba0
and eax, dword [0x6684cc]
neg eax
sbb eax, eax
and eax, 0x2b11
add eax, 0x2b11
push eax
call fcn.004dcbb0
mov ecx, dword [0x6684cc]
and eax, ecx
mov ecx, dword [0x67b5f0]
push eax
call fcn.004dca90
mov eax, dword [0x6683f4]
cmp eax, 2
jne 0x40be07
call fcn.00468c80
jmp 0x40be18
cmp eax, 3
jne 0x40be13
call fcn.00468ee0
jmp 0x40be18
call fcn.00468a20
push 0
mov ecx, esi
call fcn.00482880
push str.mmRace_constructors
call fcn.0055a480
add esp, 4
mov ecx, esi
push 0x6685d0
call fcn.004827d0
push 0
push 0x17
call fcn.0050e090
add esp, 4
mov ecx, esi
push eax
call fcn.00482800
push 0x33340
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x40be72
mov ecx, eax
call fcn.00482b40
jmp 0x40be74
xor eax, eax
push 0x2c
mov dword [ebp - 4], ebx
mov dword [edi + 0xa4], eax
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
mov dword [ebp - 4], 2
je 0x40be9e
mov ecx, eax
call fcn.005126a0
jmp 0x40bea0
xor eax, eax
push 0x84
mov dword [ebp - 4], ebx
mov dword [edi + 0xb0], eax
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
mov dword [ebp - 4], 3
je 0x40becd
mov ecx, eax
call fcn.00512b20
jmp 0x40becf
xor eax, eax
lea esi, [edi + 0x174ac]
push 0x5d44b0
push esi
mov dword [ebp - 4], ebx
mov dword [edi + 0xb4], eax
mov dword [ebp - 0x38], esi
call fcn.00566480
mov al, byte [0x5d44b0]
add esp, 8
cmp al, 0x63
je 0x40bf06
cmp al, 0x43
mov dword [0x66a808], 0
jne 0x40bf10
mov dword [0x66a808], 1
mov ecx, dword [0x66a80c]
call fcn.004c0320
add eax, 0x54
lea ebx, [edi + 0x174d4]
push eax
push ebx
call fcn.00566480
mov edx, dword [0x66a808]
add esp, 8
push edx
push ebx
push esi
push str._s_maps_to__s__CHICAGO_d_
call fcn.005585e0
mov eax, dword [edi + 0xc0]
add esp, 0x10
test eax, eax
jne 0x40bf9f
call fcn.004dcc00
test dword [0x6684cc], eax
je 0x40bf9f
push 0x158
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
mov dword [ebp - 4], 4
je 0x40bf7f
mov ecx, eax
call fcn.004dd2c0
jmp 0x40bf81
xor eax, eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xc0], eax
call fcn.004dd380
mov eax, dword [edi + 0xc0]
push eax
jmp 0x40bfa1
push 0
mov ecx, dword [0x67b5f0]
call fcn.004dccb0
call fcn.0055a510
mov ecx, dword [ebp - 0x2c]
push 0
call fcn.00482880
push 0
push 0x18
call fcn.0050e090
mov ecx, dword [ebp - 0x2c]
add esp, 4
push eax
call fcn.00482800
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x34]
mov edx, dword [0x6683c8]
mov ecx, dword [edi + 0x1c]
xor eax, eax
cmp edx, 1
sete al
push eax
add ecx, 0x170c
call fcn.00468660
mov ecx, dword [ebp - 0x2c]
push 0
call fcn.00482880
push str.City_and_PHYS_init
call fcn.0055a480
mov ecx, dword [edi + 0x1c]
add esp, 4
add ecx, 0x4400
push ecx
mov ecx, dword [edi + 0xa4]
push esi
call fcn.004836c0
mov eax, dword [edi + 0x1c]
mov ecx, 0x67a988
mov edx, dword [eax + 0x30f0]
mov eax, dword [eax + 0x228c]
add eax, 0x48
push edx
push eax
call fcn.004c86a0
mov ecx, dword [edi + 0x1c]
push edi
push esi
push 0x6683fc
call fcn.00421570
mov edx, dword [edi + 0x1c]
push 0x47afc800
lea ecx, [edi + 0x24]
push 0x451c4000
mov eax, dword [edx + 0x30f0]
mov dword [ebp - 0x30], ecx
add eax, 0x4c
push eax
call fcn.0041d5b0
call fcn.004dcbd0
test dword [0x6684cc], eax
je 0x40c0da
mov ecx, dword [0x60b194]
push 0x4c
mov esi, dword [ecx + 0x1c]
add esi, 0xec
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 5
je 0x40c0b0
push esi
mov ecx, eax
call fcn.004dcf60
mov esi, eax
jmp 0x40c0b2
xor esi, esi
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.004dcfc0
push 0
mov ecx, esi
call fcn.004dd1a0
push 0
mov ecx, esi
call fcn.004dd200
push esi
mov ecx, edi
call fcn.00510de0
call fcn.0055a510
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
call dword [edx + 0x3c]
push 0
push 0x19
call fcn.0050e090
mov ecx, dword [ebp - 0x2c]
add esp, 4
push eax
call fcn.00482800
push 0x5a582c
call fcn.0055a480
mov edi, 0x5a5830
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x15c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x15c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [eax + 0x174ab]
mov byte [eax + 0x174aa], 0
test cl, cl
je 0x40c2c2
mov eax, dword [0x6684ac]
test eax, eax
jne 0x40c2c2
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x1dc]
push eax
push 0
lea ecx, [ebp - 0x15c]
push str..map
push ecx
push esi
call fcn.005418b0
add esp, 0x14
test eax, eax
jne 0x40c1ce
lea edx, [ebp - 0x1dc]
push edx
push eax
lea eax, [ebp - 0x15c]
push 0x5a5840
push eax
push esi
call fcn.005418b0
add esp, 0x14
test eax, eax
je 0x40c2c2
mov esi, dword [ebp - 0x20]
xor edi, edi
mov word [0x609d10], di
lea edx, [ebp - 0x15c]
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x1dc]
add ecx, 0x34
push ecx
push edx
push eax
push ebx
mov ecx, 0x609be8
call fcn.00430b80
mov byte [esi + 0x174aa], 1
mov ax, word [0x609c44]
cmp ax, di
jle 0x40c265
mov ecx, esi
mov ebx, 0xa
lea esi, [ecx + 0x17500]
push edi
mov ecx, 0x609be8
call fcn.00430890
mov edx, dword [eax + 0x14]
lea ecx, [eax + 0x14]
call dword [edx + 0x38]
add eax, 0x1c
inc edi
mov dword [esi + 4], eax
push edi
mov dword [esi], 1
push 0x1a
mov dword [esi + 8], ebx
call fcn.0050e090
add esp, 4
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00566480
mov ax, word [0x609c44]
add esp, 0xc
movsx ecx, ax
add esi, 0x24
cmp edi, ecx
jl 0x40c219
mov edi, dword [ebp - 0x20]
movsx edx, ax
mov ecx, dword [edi + 0x1c]
lea esi, [edi + 0x174fc]
push edx
push esi
add ecx, 0x2e28
call fcn.0041f910
movsx eax, word [0x609c44]
mov ecx, dword [ebp - 0x30]
push 0
push eax
push esi
call fcn.0041d5f0
mov ecx, dword [edi + 0x1c]
mov dword [ecx + 0x2e44], 0x609be8
mov eax, dword [0x66839c]
test eax, eax
jne 0x40c2c2
mov eax, dword [0x609d0c]
test eax, eax
je 0x40c2c2
mov edx, dword [edi + 0x1c]
add edx, 0x183c
mov dword [eax + 0x110], edx
call fcn.0055a510
mov ecx, dword [ebp - 0x2c]
push 0
call fcn.00482880
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x38]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x40]
mov eax, dword [0x6684ac]
test eax, eax
jne 0x40c37d
push 0x2684
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 6
je 0x40c313
mov ecx, eax
call fcn.004b6020
jmp 0x40c315
xor eax, eax
push eax
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0xcc], eax
call fcn.00510de0
xor esi, esi
cmp word [0x609c44], si
jle 0x40c35c
lea edi, [ebp - 0xdc]
push esi
mov ecx, 0x609be8
call fcn.00430890
add eax, 0x1f70
inc esi
mov dword [edi], eax
add edi, 4
movsx eax, word [0x609c44]
cmp esi, eax
jl 0x40c33b
mov edx, dword [ebx + 0x1c]
lea ecx, [ebp - 0xdc]
push esi
push ecx
mov eax, dword [edx + 0x1884]
mov ecx, dword [ebp - 0x38]
push eax
push ecx
mov ecx, dword [ebx + 0xcc]
call fcn.004b6100
mov ax, word [0x609c10]
xor edi, edi
cmp ax, di
mov dword [ebp - 0x30], edi
jle 0x40c46b
push edi
mov ecx, 0x609be8
xor ebx, ebx
xor esi, esi
call fcn.004307e0
movsx eax, word [eax + 4]
test eax, eax
jle 0x40c43b
push edi
mov ecx, 0x609be8
call fcn.004307e0
test esi, esi
jl 0x40c3ca
movsx edx, word [eax + 4]
cmp esi, edx
jg 0x40c3ca
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
jmp 0x40c3cc
xor eax, eax
cmp word [eax + 0x16], 0
jne 0x40c423
push edi
mov ecx, 0x609be8
call fcn.004307e0
test esi, esi
jl 0x40c3f1
movsx ecx, word [eax + 4]
cmp esi, ecx
jg 0x40c3f1
mov edx, dword [eax]
mov eax, dword [edx + esi*4]
jmp 0x40c3f3
xor eax, eax
cmp word [eax + 0x22], 0
jne 0x40c423
push edi
mov ecx, 0x609be8
inc ebx
call fcn.004307e0
test esi, esi
jl 0x40c41c
movsx ecx, word [eax + 4]
cmp esi, ecx
jg 0x40c41c
mov edx, dword [eax]
mov eax, dword [edx + esi*4]
mov dword [ebp - 0x38], eax
jmp 0x40c423
mov dword [ebp - 0x38], 0
push edi
mov ecx, 0x609be8
inc esi
call fcn.004307e0
movsx eax, word [eax + 4]
cmp esi, eax
jl 0x40c3ac
cmp ebx, 1
jne 0x40c456
mov esi, dword [ebp - 0x38]
push ebx
mov ecx, esi
call fcn.0043a6f0
mov ecx, dword [esi]
push ebx
call fcn.0043a6f0
mov dword [ebp - 0x30], ebx
mov ax, word [0x609c10]
inc edi
movsx ecx, ax
cmp edi, ecx
jl 0x40c391
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x40c383
push 0
push 0x1b
call fcn.0050e090
mov esi, dword [ebp - 0x2c]
add esp, 4
mov ecx, esi
push eax
call fcn.00482800
mov eax, dword [0x6683f4]
test eax, eax
jne 0x40c4ea
mov eax, dword [0x66839c]
test eax, eax
jne 0x40c4ea
cmp word [0x609c20], 0
jle 0x40c4ea
push 0x14
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 7
je 0x40c4da
mov edx, dword [ebx + 0x1c]
mov ecx, eax
push edx
call fcn.0041ef10
or edi, 0xffffffff
mov dword [ebx + 0xc4], eax
mov dword [ebp - 4], edi
jmp 0x40c4ed
xor eax, eax
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov dword [ebx + 0xc4], eax
jmp 0x40c4ed
or edi, 0xffffffff
push 0
mov ecx, esi
call fcn.00482880
mov eax, dword [ebx + 0xb4]
mov dword [eax + 0x40], 0x41200000
add eax, 0x40
push str.Lamp
mov dword [eax + 4], 0x447a0000
mov dword [eax + 8], 0x41200000
mov ecx, dword [ebx + 0xb4]
call fcn.00510cf0
mov ecx, dword [ebx + 0xb0]
call fcn.00512810
push 0x2c
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 8
je 0x40c555
push 0x20
push edi
push 1
mov ecx, eax
call fcn.00545570
jmp 0x40c557
xor eax, eax
push 0x5c
mov dword [ebp - 4], edi
mov dword [ebx + 0x1761c], eax
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 9
je 0x40c596
push 0x3f4ccccd
push 0x3f19999a
push 0x3dcccccd
push 0x3e4ccccd
push ebx
mov ecx, eax
call fcn.0041dce0
jmp 0x40c598
xor eax, eax
mov dword [ebx + 0xc8], eax
mov edx, dword [eax]
mov ecx, eax
mov dword [ebp - 4], edi
call dword [edx + 0x1c]
call fcn.0055a510
lea ecx, [ebp - 0x28]
call fcn.0055ae40
mov eax, dword [0x6683bc]
mov dword [ebp - 4], 0xa
cmp eax, 4
ja case.0x40c5ca.0
jmp dword [eax*4 + 0x40c898]
mov ecx, dword [0x66a80c]
call fcn.004c0320
mov esi, dword [eax + 0x84]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x24]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp edi, eax
jl 0x40c61e
lea ebx, [edi + 0x32]
cmp ebx, eax
jle 0x40c61e
test eax, eax
je 0x40c60f
mov eax, dword [ebp - 0x28]
push eax
call fcn.0050f580
add esp, 4
push ebx
mov dword [ebp - 0x24], ebx
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, edi
mov edi, dword [ebp - 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x6683c0]
lea ecx, [ebp - 0x14]
inc eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0055c610
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 ecx, dword [ebp - 0x14]
push ecx
call fcn.0050f580
mov edx, dword [ebp - 0x20]
add esp, 4
lea ecx, [ebp - 0x7c]
mov eax, dword [edx + 0xc8]
push ecx
push 0x1c
mov esi, dword [eax + 0x44]
jmp 0x40c84b
mov ecx, dword [0x66a80c]
call fcn.004c0320
mov esi, dword [eax + 0x80]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x24]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp edi, eax
jl 0x40c6d6
lea ebx, [edi + 0x32]
cmp ebx, eax
jle 0x40c6d6
test eax, eax
je 0x40c6c7
mov edx, dword [ebp - 0x28]
push edx
call fcn.0050f580
add esp, 4
push ebx
mov dword [ebp - 0x24], ebx
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, edi
mov edi, dword [ebp - 0x28]
mov eax, ecx
lea edx, [ebp - 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6683c0]
inc ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0055c610
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 ecx, dword [ebp - 0x34]
push ecx
call fcn.0050f580
mov edx, dword [ebp - 0x20]
add esp, 4
lea ecx, [ebp - 0x7c]
mov eax, dword [edx + 0xc8]
push ecx
push 0x1d
mov esi, dword [eax + 0x44]
jmp 0x40c84b
mov ecx, dword [0x66a80c]
call fcn.004c0320
mov esi, dword [eax + 0x7c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x24]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp edi, eax
jl 0x40c78c
lea ebx, [edi + 0x32]
cmp ebx, eax
jle 0x40c78c
test eax, eax
je 0x40c77d
mov edx, dword [ebp - 0x28]
push edx
call fcn.0050f580
add esp, 4
push ebx
mov dword [ebp - 0x24], ebx
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, edi
mov edi, dword [ebp - 0x28]
mov eax, ecx
lea edx, [ebp - 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x6683c0]
inc ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0055c610
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 ecx, dword [ebp - 0x3c]
push ecx
call fcn.0050f580
mov edx, dword [ebp - 0x20]
add esp, 4
lea ecx, [ebp - 0x7c]
mov eax, dword [edx + 0xc8]
push ecx
push 0x1e
mov esi, dword [eax + 0x44]
jmp 0x40c84b
mov eax, dword [0x6685b0]
sub eax, 0
je 0x40c80d
dec eax
je 0x40c809
dec eax
jne 0x40c839
push 0x21
jmp 0x40c80f
push 0x20
jmp 0x40c80f
push 0x1f
call fcn.0050e090
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x7c]
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 ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x7c]
push eax
push 0x22
mov edx, dword [ecx + 0xc8]
mov esi, dword [edx + 0x44]
call fcn.0050e090
add esp, 4
mov ecx, esi
push eax
call fcn.0049d5a0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
push ecx
call fcn.0050f580
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret