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

Disassembly:
push 0xffffffffffffffff
push 0x49a65e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
mov ebx, dword [esp + 0xcc]
push ebp
push esi
mov eax, dword [ebx + 8]
mov esi, ecx
mov ecx, dword [ebx + 4]
push edi
push ecx
push eax
push eax
call fcn.00426d70
add esp, 0xc
mov edi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push edi
call fcn.004182c0
mov dword [ebx + 8], edi
mov edi, dword [esp + 0xdc]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
push ecx
push eax
push eax
call fcn.0040b060
add esp, 0xc
mov ebp, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebp
call fcn.0040ab00
mov dword [edi + 8], ebp
push ecx
xor ebp, ebp
mov ecx, esp
mov dword [esp + 0x34], esp
push ebp
call fcn.0046eb50
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0x40], edi
call fcn.0046ee50
mov ecx, esi
mov byte [esi + 0xc], 0
call fcn.00432130
cmp byte [esi + 0xc], 1
je 0x43162f
mov ecx, esi
call fcn.00436b50
cmp byte [esi + 0xc], 1
je 0x43162f
mov ecx, esi
call fcn.0043b180
cmp byte [esi + 0xc], 1
je 0x43162f
mov ecx, esi
call fcn.00436360
cmp byte [esi + 0xc], 1
je 0x43162f
mov ecx, esi
call fcn.00437830
mov ecx, edi
call fcn.0046efe0
test ax, ax
je 0x432106
push ebp
lea ecx, [esp + 0x18]
call fcn.0046eb50
mov al, byte [esp + 0x13]
mov dword [esp + 0xd0], ebp
mov byte [esp + 0x40], al
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0xd0], 1
call fcn.0046eb20
mov cl, byte [esp + 0x13]
mov dword [esp + 0x54], ebp
mov byte [esp + 0x50], cl
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
lea ecx, [esp + 0x68]
mov byte [esp + 0xd0], 3
call fcn.0046f9e0
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x18], dl
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd4], 5
call fcn.0046eb50
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x40], esp
push ebp
mov ecx, esi
mov byte [esp + 0xe4], 6
mov dword [esp + 0x40], esi
mov byte [esi], al
call fcn.00401bb0
mov edi, str.VIDMAP.DB
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ecx
push ecx
mov ecx, esi
call fcn.0040aba0
test al, al
je 0x43172a
mov ecx, dword [esp + 0x38]
mov eax, esi
mov edx, ecx
mov esi, str.VIDMAP.DB
mov edi, dword [eax + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call fcn.0040ab80
mov ecx, dword [0x4b63ec]
lea edx, [esp + 0x78]
push edx
call fcn.00415020
cmp ax, bp
jne 0x431846
lea ecx, [esp + 0x38]
mov byte [esp + 0xd0], 5
call fcn.0046ec60
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0xd0], 4
je 0x43177b
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x431768
mov esi, dword [esp + 0x1c]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0xd0], 3
call fcn.0046fb60
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, edi
mov byte [esp + 0xd0], 2
je 0x4317c8
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x4317b5
mov esi, dword [esp + 0x54]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov byte [esp + 0xd0], 1
call fcn.0046ec60
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, edi
mov byte [esp + 0xd0], 0
je 0x431815
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x431802
mov esi, dword [esp + 0x44]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0xd0], 0xffffffff
call fcn.0046ec60
xor ax, ax
jmp 0x43210a
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.0046efe0
movsx eax, ax
cdq
sub eax, edx
sar eax, 1
cmp ax, bp
jle 0x4319a0
movsx eax, ax
xor esi, esi
mov dword [esp + 0x28], eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ebp
call fcn.0046eb50
lea ecx, [esp + 0x18]
call fcn.0046ee50
mov cl, byte [0x4b65fd]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046efc0
push ebp
lea ecx, [esp + 0x18]
call fcn.0046efc0
push esi
mov ecx, edi
call fcn.0046ee40
push eax
lea ecx, [esp + 0x18]
call fcn.0046efc0
lea edx, [esi + 1]
mov ecx, edi
push edx
call fcn.0046ee40
push eax
lea ecx, [esp + 0x18]
call fcn.0046efc0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x44]
lea edx, [esp + 0x6c]
push ecx
push edx
sub esp, 0x10
lea eax, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
push str.VIDMAP.DB
mov byte [esp + 0xf4], 7
call fcn.00401aa0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0xec], 6
call fcn.00415100
cmp ax, bp
je 0x43198e
push ebp
lea ecx, [esp + 0x44]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x38]
call fcn.0046ee50
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0046eb30
sub esp, 0x10
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0xe8], 8
call fcn.0040a7f0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0xe4], 6
call fcn.00416dd0
cmp ax, bp
je 0x43198e
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x34]
push ecx
push 1
push edx
lea ecx, [esp + 0x5c]
call fcn.00401c40
mov eax, dword [esp + 0x28]
add esi, 2
dec eax
mov dword [esp + 0x28], eax
jne 0x43186b
lea ecx, [esp + 0x68]
call fcn.0046fec0
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x40], esp
push ebp
mov ecx, esi
mov dword [esp + 0x3c], esi
mov byte [esi], al
call fcn.00401bb0
mov edi, str.VINFO.DB
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x40], ecx
push ecx
mov ecx, esi
call fcn.0040aba0
test al, al
je 0x431a12
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov esi, str.VINFO.DB
mov edi, dword [ecx + 4]
mov ecx, eax
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 ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
mov dword [ecx + 8], eax
add eax, edx
mov byte [eax], 0
mov ecx, dword [0x4b63ec]
lea eax, [esp + 0x78]
push eax
call fcn.00415020
cmp ax, bp
jne 0x431b30
lea ecx, [esp + 0x38]
mov byte [esp + 0xd0], 5
call fcn.0046ec60
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0xd0], 4
je 0x431a63
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x431a50
mov esi, dword [esp + 0x1c]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0xd0], 3
call fcn.0046fb60
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0xd0], 2
mov edi, eax
je 0x431ab2
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x431a9f
mov esi, dword [esp + 0x54]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov byte [esp + 0xd0], 1
call fcn.0046ec60
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, edi
mov byte [esp + 0xd0], 0
je 0x431aff
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x431aec
mov esi, dword [esp + 0x44]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0xd0], 0xffffffff
call fcn.0046ec60
xor ax, ax
jmp 0x43210a
mov edi, 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
push eax
push eax
call fcn.0040b060
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x18]
push edx
push esi
call fcn.0040ab00
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x2c], esi
call fcn.004269b0
dec edi
jne 0x431b35
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ebp
call fcn.0046eb50
lea ecx, [esp + 0x18]
call fcn.0046ee50
mov dl, byte [0x4b65fd]
lea ecx, [esp + 0x14]
push edx
call fcn.0046efc0
push ebp
lea ecx, [esp + 0x18]
call fcn.0046efc0
push ebp
lea ecx, [esp + 0x18]
call fcn.0046efc0
push ebp
lea ecx, [esp + 0x18]
call fcn.0046efc0
push ebp
lea ecx, [esp + 0x18]
call fcn.0046efc0
push ebp
lea ecx, [esp + 0x18]
call fcn.0046efc0
mov edi, 1
mov esi, dword [esp + 0xdc]
mov ecx, dword [0x4b63ec]
mov eax, edi
push eax
lea eax, [esp + 0x18]
inc edi
push eax
mov dword [esp + 0x38], edi
call fcn.00415730
test ax, ax
je 0x432000
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0046eb30
lea eax, [esp + 0x44]
lea ecx, [esp + 0x6c]
push eax
push ecx
sub esp, 0x10
lea edx, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
push str.VINFO.DB
mov byte [esp + 0xf4], 9
call fcn.00401aa0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0xec], 6
call fcn.00415100
cmp ax, bp
je 0x432000
push ebp
lea ecx, [esp + 0x44]
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x38]
call fcn.0046ee50
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0046eb30
sub esp, 0x10
lea edx, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0xe8], 0xa
call fcn.0040a7f0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0xe4], 6
call fcn.00416dd0
cmp ax, bp
jl 0x431bd6
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00401c40
mov eax, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push edx
call fcn.00401ba0
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call fcn.0046eb30
lea ecx, [esp + 0x3c]
call fcn.0046ee50
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call fcn.0046eb30
mov ecx, dword [0x4b63ec]
call fcn.00416cf0
test ax, ax
je 0x431fd2
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
lea esi, [edx + eax]
lea eax, [esp + 0x18]
cmp eax, esi
je 0x431e4f
mov edx, dword [esi + 4]
test edx, edx
jne 0x431d4a
xor eax, eax
jmp 0x431d52
mov eax, dword [esi + 8]
sub eax, edx
sar eax, 2
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x431d5e
xor ecx, ecx
jmp 0x431d67
mov ecx, dword [esp + 0x20]
sub ecx, edi
sar ecx, 2
cmp eax, ecx
ja 0x431dac
mov eax, dword [esi + 8]
push edi
push eax
push edx
call fcn.0040b060
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ecx
mov ebp, ecx
mov edi, eax
je 0x431d95
push 0
mov ecx, edi
call fcn.00402090
add edi, 4
cmp edi, ebp
jne 0x431d85
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax*4]
mov dword [esp + 0x20], edx
jmp 0x431e4f
mov ecx, esi
call fcn.0040a860
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040aae0
cmp edi, eax
ja 0x431df8
mov edi, dword [esi + 4]
lea ecx, [esp + 0x18]
call fcn.0040a860
mov ecx, dword [esp + 0x1c]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call fcn.0040b060
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
push eax
push edi
call fcn.00401c00
jmp 0x431d95
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040ab00
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048d500
add esp, 4
mov ecx, esi
call fcn.0040a860
test eax, eax
jge 0x431e25
xor eax, eax
shl eax, 2
push eax
call fcn.0048db76
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00401c00
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
call fcn.0046eb30
sub esp, 0x10
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
mov byte [esp + 0xe8], 0xb
call fcn.0040a7f0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0xe4], 6
call fcn.00416dd0
test ax, ax
jge 0x431fd2
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.00401c40
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
add esi, ecx
lea ecx, [esp + 0x18]
cmp esi, ecx
je 0x431fd2
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
jne 0x431ed8
xor ecx, ecx
jmp 0x431edf
mov ecx, ebx
sub ecx, edi
sar ecx, 2
mov ebp, dword [esi + 4]
test ebp, ebp
jne 0x431eea
xor eax, eax
jmp 0x431ef2
mov eax, dword [esi + 8]
sub eax, ebp
sar eax, 2
cmp ecx, eax
ja 0x431f26
cmp edi, ebx
je 0x431f18
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push edi
call fcn.0046eb30
mov ecx, ebp
call fcn.0046ee50
add edi, 4
add ebp, 4
cmp edi, ebx
jne 0x431efa
mov edx, dword [esi + 8]
mov ecx, esi
push edx
push ebp
call fcn.0040ab00
jmp 0x431f6d
mov ecx, esi
call fcn.0040aae0
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040a860
cmp eax, edi
ja 0x431f81
mov edi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esp + 0x1c]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push eax
push edi
push ecx
call fcn.0040b060
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push edx
push eax
push edi
call fcn.00401c00
lea ecx, [esp + 0x18]
call fcn.0040a860
mov ecx, dword [esi + 4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x431fd2
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040ab00
mov edx, dword [esi + 4]
push edx
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0040a860
test eax, eax
jge 0x431fab
xor eax, eax
shl eax, 2
push eax
call fcn.0048db76
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00401c00
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
inc edx
add ecx, 0x10
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
jne 0x431cd9
mov edi, dword [esp + 0x30]
xor ebp, ebp
jmp 0x431bcf
lea ecx, [esp + 0x68]
call fcn.0046fec0
lea ecx, [esp + 0x38]
mov byte [esp + 0xd0], 5
call fcn.0046ec60
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, ebx
mov byte [esp + 0xd0], 4
je 0x432041
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, ebx
jne 0x43202e
mov esi, dword [esp + 0x1c]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0xd0], 3
call fcn.0046fb60
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0xd0], 2
mov ebx, eax
je 0x432090
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, ebx
jne 0x43207d
mov esi, dword [esp + 0x54]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov byte [esp + 0xd0], 1
call fcn.0046ec60
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, ebx
mov byte [esp + 0xd0], 0
je 0x4320dd
push ebp
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, ebx
jne 0x4320ca
mov esi, dword [esp + 0x44]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0xd0], 0xffffffff
call fcn.0046ec60
mov ax, 1
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc4
ret 8