Function at 0x412310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49135e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], ebx
mov dword [ebp], 0x496768
lea ecx, [ebp + 0xa0]
mov dword [esp + 0x10c], ebx
lea esi, [ebp + 0x10]
call fcn.00481893
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
sub esp, 0x10
mov dword [ebp + 0xcc], eax
mov edi, esp
xor eax, eax
xor edx, edx
mov dword [ebp], 0x497004
mov dword [edi], eax
mov dword [ebp + 0xc4], ebx
mov dword [ebp + 0xc8], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov eax, dword [0x4a70d0]
mov dword [edi + 4], edx
mov byte [esp + 0x11c], 1
mov dword [edi + 8], eax
mov eax, dword [0x4a70d4]
mov dword [edi + 0xc], eax
call fcn.00402ee0
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x4123d3
cmp eax, 3
je 0x4123d3
cmp eax, 4
jne 0x4123dd
mov dword [0x4b7f84], 1
cmp dword [ebp + 8], 1
jne 0x41247e
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x84]
mov edx, dword [ebp + ecx*4 + 0x78]
push edx
push 0x4a8538
push eax
call fcn.00462db2
mov edi, dword [ebp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
call fcn.0041f260
lea edx, [esp + 0x34]
push eax
push edx
mov ecx, edi
call fcn.00412bb0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call dword [0x4964ac]
mov eax, dword [ebp + 4]
push esi
mov eax, dword [eax + 0x1c]
push eax
call dword [0x4964b0]
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 0x20], 0xa
lea eax, [ecx + edi]
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [esp + 0x28]
add eax, edx
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 8], 4
jne 0x4125b8
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc4]
push edx
mov eax, dword [ecx + 0x1c]
push eax
call fcn.004525ce
push 0x4b73a8
mov ecx, ebp
mov dword [ebp + 0xc8], eax
mov byte [ebp + 0x98], 0
call fcn.00412cb0
mov ecx, ebp
call fcn.00412f70
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x412570
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x48]
push 0x4a7ddc
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x9c]
lea eax, [esp + 0x28]
push eax
call fcn.00404920
mov ecx, dword [eax + 4]
mov edi, 0x4a8528
neg ecx
mov dword [esp + 0x48], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x5f], 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0xc4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.004525c8
mov eax, dword [ebp + 0xc4]
push 1
push eax
call fcn.004525c2
mov eax, dword [ebp + 0xc4]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.004525bc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0xc4]
or al, 3
push ecx
push eax
push edx
mov dword [esp + 0x2c], eax
call fcn.004525b6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x3c]
push eax
lea eax, [esp + 0x38]
push edx
push eax
lea edx, [esp + 0x30]
push 0x4a8100
push edx
call fcn.00412c00
mov ecx, eax
call fcn.00417d60
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.00412c60
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
call fcn.00401730
add esp, 4
lea edx, [esp + 0x14]
push edx
call fcn.00401080
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00482c2a
mov eax, dword [ebp + 0xcc]
test eax, eax
jne 0x4126ee
push 0x4c
call fcn.00483177
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x10c], 2
je 0x412656
mov eax, dword [0x4b7f80]
test eax, eax
mov eax, str.systemmystereet_select.scn
jne 0x41261b
mov eax, str.systemmystereet_select1.scn
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00482c98
lea eax, [esp + 0x14]
push eax
call fcn.004013c0
mov ebx, 1
add esp, 8
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x114], 3
call fcn.0041ebb0
jmp 0x412658
xor eax, eax
mov edi, 1
mov dword [ebp + 0x24], eax
test bl, 1
mov dword [esp + 0x10c], edi
je 0x412678
lea ecx, [esp + 0x10]
and ebx, 0xfffffffe
call fcn.00482c2a
push 0x4c
call fcn.00483177
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x10c], 5
je 0x4126d1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.systemmystereet_target.scn
call fcn.00482c98
lea edx, [esp + 0x14]
push edx
call fcn.004013c0
or ebx, 2
add esp, 8
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov ecx, esi
push eax
mov eax, dword [ebp + 4]
push eax
mov byte [esp + 0x114], 6
call fcn.0041ebb0
jmp 0x4126d3
xor eax, eax
test bl, 2
mov dword [ebp + 0x28], eax
mov dword [esp + 0x10c], edi
je 0x4126ee
lea ecx, [esp + 0x10]
and ebx, 0xfffffffd
call fcn.00482c2a
xor ecx, ecx
mov eax, 0x4b8010
mov edx, dword [eax + 0x84]
mov edi, 0x80000000
test edi, edx
je 0x412709
cmp dword [eax], 0xf
je 0x412718
add eax, 0x88
inc ecx
cmp eax, 0x4b8450
jb 0x4126f5
jmp 0x41271d
cmp ecx, 8
jb 0x41272b
mov eax, dword [ebp + 0xcc]
test eax, eax
je 0x412ae7
call fcn.004525b0
push 0x4c
mov dword [ebp + 0xc4], eax
call fcn.00483177
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x10c], 8
je 0x41278f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.systemmqkeyboard0.scn
call fcn.00482c98
lea ecx, [esp + 0x14]
push ecx
call fcn.004013c0
or ebx, 4
add esp, 8
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov edx, dword [ebp + 4]
push eax
push edx
mov ecx, esi
mov byte [esp + 0x114], 9
call fcn.0041ebb0
jmp 0x412791
xor eax, eax
mov edi, 1
mov dword [ebp + 0x2c], eax
test bl, 4
mov dword [esp + 0x10c], edi
je 0x4127b1
lea ecx, [esp + 0x10]
and ebx, 0xfffffffb
call fcn.00482c2a
push 0x4c
call fcn.00483177
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x10c], 0xb
je 0x41280a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.systemmqkeyboard1.scn
call fcn.00482c98
lea eax, [esp + 0x14]
push eax
call fcn.004013c0
or ebx, 8
add esp, 8
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x114], 0xc
call fcn.0041ebb0
jmp 0x41280c
xor eax, eax
test bl, 8
mov dword [ebp + 0x30], eax
mov dword [esp + 0x10c], edi
je 0x412827
lea ecx, [esp + 0x10]
and ebx, 0xfffffff7
call fcn.00482c2a
push 0x4c
call fcn.00483177
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x10c], 0xe
je 0x412880
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.systemmqkeyboard3.scn
call fcn.00482c98
lea edx, [esp + 0x14]
push edx
call fcn.004013c0
or ebx, 0x10
add esp, 8
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov ecx, esi
push eax
mov eax, dword [ebp + 4]
push eax
mov byte [esp + 0x114], 0xf
call fcn.0041ebb0
jmp 0x412882
xor eax, eax
test bl, 0x10
mov dword [ebp + 0x34], eax
mov dword [esp + 0x10c], edi
je 0x41289a
lea ecx, [esp + 0x10]
call fcn.00482c2a
mov ecx, dword [ebp + 4]
push 0
lea edx, [esp + 0x88]
push 0x4a8478
mov eax, dword [ecx + 0x40]
push edx
mov dword [ebp + 0x9c], eax
mov dword [ebp + 0xbc], 0
call fcn.00462db2
mov ecx, dword [ebp + 0x30]
add esp, 0xc
lea eax, [esp + 0x84]
push eax
call fcn.0041f260
test eax, eax
jl 0x412914
mov edx, dword [ebp + 0xbc]
lea ecx, [esp + 0x84]
inc edx
mov eax, edx
mov dword [ebp + 0xbc], edx
push eax
push 0x4a8478
push ecx
call fcn.00462db2
mov ecx, dword [ebp + 0x30]
add esp, 0xc
lea edx, [esp + 0x84]
push edx
call fcn.0041f260
test eax, eax
jge 0x4128db
lea edi, [ebp + 0xa0]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00481926
xor eax, eax
mov dword [ebp + 0xb4], 0xffffffff
mov dword [ebp + 0xb8], eax
mov cl, byte [0x4b7f48]
test cl, 4
je 0x412974
mov eax, dword [0x4b7f58]
xor esi, esi
test eax, eax
jle 0x412ad8
mov eax, dword [0x4b7f54]
mov ecx, dword [edi + 8]
lea eax, [eax + esi*4]
push eax
push ecx
mov ecx, edi
call fcn.00481a9b
mov eax, dword [0x4b7f58]
inc esi
cmp esi, eax
jl 0x412951
jmp 0x412ad8
mov ecx, dword [0x4b7f70]
mov dword [esp + 0x10], eax
cmp ecx, eax
jle 0x412ad8
mov ebx, dword [0x4a80d8]
cmp dword [ebp + 0xa8], 0x1e
jge 0x412ad8
mov ecx, dword [0x4b7f6c]
mov esi, dword [0x4b7f7c]
mov edi, dword [ecx + eax*4]
mov edx, dword [esi - 8]
lea eax, [ecx + eax*4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [edi - 8]
cmp eax, edx
jl 0x412ac1
xor ecx, ecx
cmp edx, 1
jle 0x412a9e
mov eax, 1
mov dword [esp + 0x14], esi
sub eax, esi
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov al, byte [ecx + edi]
mov dl, byte [edx]
cmp al, dl
mov byte [esp + 0x1b], dl
jne 0x4129fa
mov al, byte [ecx + edi + 1]
cmp al, byte [ecx + esi + 1]
je 0x412a80
mov eax, dword [esp + 0x20]
add eax, 0xfffffffe
cmp ecx, eax
jne 0x412a9e
mov esi, dword [0x4a80d4]
mov al, byte [esi]
test al, al
je 0x412a75
cmp dl, al
jne 0x412a63
mov eax, dword [esp + 0x14]
mov al, byte [eax + 1]
cmp al, byte [esi + 1]
jne 0x412a63
mov edx, dword [0x4a80d4]
mov eax, esi
sub eax, edx
mov dl, byte [ecx + edi]
cmp dl, byte [eax + ebx]
jne 0x412a41
mov dl, byte [ecx + edi + 1]
cmp dl, byte [eax + ebx + 1]
je 0x412a75
mov ebx, dword [0x4a80dc]
mov dl, byte [ecx + edi]
cmp dl, byte [eax + ebx]
jne 0x412a59
mov dl, byte [ecx + edi + 1]
cmp dl, byte [eax + ebx + 1]
je 0x412a6f
mov ebx, dword [0x4a80d8]
mov dl, byte [esp + 0x1b]
mov al, byte [esi + 2]
add esi, 2
test al, al
jne 0x412a15
jmp 0x412a75
mov ebx, dword [0x4a80d8]
cmp byte [esi], 0
je 0x412a9e
mov esi, dword [0x4b7f7c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, 2
add ecx, 2
mov dword [esp + 0x14], eax
add edx, eax
cmp edx, dword [esp + 0x20]
jl 0x4129db
cmp ecx, dword [esp + 0x20]
jne 0x412ac1
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0xa8]
lea ecx, [ebp + 0xa0]
push edx
push eax
call fcn.00481a9b
mov ebx, dword [0x4a80d8]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b7f70]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41298c
mov ecx, dword [ebp + 0x30]
push 0
call fcn.0041f6b0
mov edi, 0x80000000
xor esi, esi
mov eax, 0x4b8094
lea ecx, [ebp + 0x78]
test dword [eax], edi
je 0x412af8
mov dword [ecx], esi
inc esi
add eax, 0x88
add ecx, 4
cmp eax, 0x4b84d4
jb 0x412af1
push 0x4a8474
lea ecx, [esp + 0x14]
call fcn.00482c98
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x10]
add ecx, 0x34
push edx
mov byte [esp + 0x110], 0x11
mov eax, dword [ecx]
call dword [eax]
dec eax
lea ecx, [esp + 0x10]
mov dword [ebp + 0x38], eax
mov byte [esp + 0x10c], 1
call fcn.00482c2a
mov eax, dword [ebp + 0x38]
xor ecx, ecx
xor edx, edx
cmp eax, ecx
setle dl
dec edx
and eax, edx
mov edx, eax
mov dword [ebp + 0x38], eax
shl edx, 4
add edx, eax
test dword [edx*8 + 0x4b8094], edi
jne 0x412b81
cmp esi, ecx
je 0x412b81
mov eax, dword [ebp + 0x38]
inc eax
and eax, 7
mov edx, eax
mov dword [ebp + 0x38], eax
shl edx, 4
add edx, eax
test dword [edx*8 + 0x4b8094], edi
je 0x412b63
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x104]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x100
ret 8