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

Disassembly:
sub esp, 0x39c
mov eax, dword [0x44d890]
xor eax, esp
mov dword [esp + 0x398], eax
cmp dword [0x19b82bc], 0
jne 0x42a3c2
call fcn.0041eea0
push 0x4418dc
call fcn.0042ec60
push str.__Direct3D_9_Activate___n
call fcn.0042ec60
mov eax, dword [0x107f860]
mov ecx, dword [0xc5e4fc]
add esp, 8
cmp eax, 0x640
jne 0x42a3ff
cmp ecx, 0x4b0
jne 0x42a3ff
push 0x400
push 0x500
jmp 0x42a401
push ecx
push eax
call fcn.0041a9d0
mov eax, dword [0xc5e4fc]
mov ecx, dword [0x107f860]
mov edx, dword [0x8c0178]
add esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_MoveWindow]
push esi
push edi
mov ebx, 1
push ebx
push eax
push ecx
push 0
push 0
push edx
call ebp
cmp dword [0x196a27c], ebx
jne 0x42a520
push str.__d3dWindowed...
call fcn.0042ec60
mov eax, dword [0x8c0178]
add esp, 4
push 0x10c80000
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0xc5e4fc]
mov edx, dword [0x107f860]
mov eax, dword [0x8c0178]
push ebx
push ecx
push edx
push 0
push 0
push eax
call ebp
mov edx, dword [0x8c0178]
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [0x8c0178]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [0x107f860]
mov edi, dword [0xc5e4fc]
sub esi, dword [esp + 0x60]
sub edi, dword [esp + 0x64]
sub esi, dword [esp + 0x48]
sub edi, dword [esp + 0x4c]
add esi, dword [esp + 0x50]
add edi, dword [esp + 0x54]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ebx
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
push ebx
sub eax, edx
mov edx, dword [esp + 0x4c]
push edi
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [0x8c0178]
push esi
push ecx
push edx
push eax
mov dword [esp + 0x64], ecx
call ebp
push str._Ok__n
mov byte [0x19b8300], 0
call fcn.0042ec60
add esp, 4
jmp 0x42a534
mov ecx, dword [0x8c0178]
push 0x90000000
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [0x19b82bc]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x68]
push ecx
push 0
push eax
call edx
push 0x38
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00430f10
mov eax, dword [0x196a27c]
mov ecx, dword [0x107f860]
mov edx, dword [0xc5e4fc]
add esp, 0xc
push 0x19b82c0
mov dword [esp + 0x34], eax
mov eax, dword [0x8c0178]
lea esi, [esp + 0x14]
push esi
push 0x40
push eax
mov dword [esp + 0x20], ecx
mov ecx, dword [0x19b82bc]
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x17
mov dword [esp + 0x3c], 2
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0x50
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], Ordinal_2
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
push 0
push ecx
call eax
mov esi, eax
test esi, esi
jns 0x42a66b
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str.Failed_to_create_the_D3D9_Device__n
lea ecx, [esp + 0x1ac]
push 0x442f80
push ecx
call edi
add esp, 0xc
cmp esi, 0x88760868
jne 0x42a604
push esi
push str.__Device_was_lost__n
jmp 0x42a642
cmp esi, 0x8876086c
jne 0x42a61c
push esi
push str.__Invalid_call__n
lea eax, [esp + 0x1b0]
push eax
jmp 0x42a64a
cmp esi, 0x8876086a
jne 0x42a634
push esi
push str.__Not_available__n
lea ecx, [esp + 0x1b0]
push ecx
jmp 0x42a64a
cmp esi, 0x8876017c
jne 0x42a659
push esi
push str.__Out_of_video_memory__n
lea edx, [esp + 0x1b0]
push edx
push str._s_s__u_
push 0x19924c0
call edi
add esp, 0x14
push 0x19924c0
call fcn.0041a670
add esp, 4
jmp 0x42ac33
call fcn.0041ef00
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 0
push 0x89
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 0
push 0x1d
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push ebx
push 7
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 7
push 0x17
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 3
push 0x16
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 0
push 0x88
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 0x60
push 0x18
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 0
push 0xf
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 7
push 0x19
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push ebx
push 0x1b
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
push ebx
mov edx, dword [ecx + 0xe4]
push 0xab
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 5
push 0x13
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 6
push 0x14
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x114]
push 2
push 5
push 0
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x114]
push 2
push 6
push 0
push eax
call edx
mov edx, dword [esp + 0xe4]
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
push edx
push 0xa
push 0
push eax
mov eax, dword [ecx + 0x114]
call eax
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10c]
push 4
push ebx
push 0
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10c]
push 2
push 2
push 0
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10c]
push 0
push 3
push 0
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10c]
push 4
push 4
push 0
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
push 0
push 5
push 0
push eax
mov edx, dword [ecx + 0x10c]
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10c]
push 2
push 6
push 0
push eax
call edx
mov eax, dword [0x19b82c0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
push 0x1c4
push eax
call edx
call fcn.0041f7d0
push 0x892600
push 0x100
xor eax, eax
push 0x100
xor ebp, ebp
mov ecx, 0x800
mov edi, 0x19b62b8
push ebp
mov byte [0x19aa27a], bl
mov dword [0x54f6cc], ebx
rep stosd dword es:[edi], eax
mov dword [0x19b82dc], 0x7fb
call fcn.0041f410
add esp, 0x10
xor esi, esi
mov dword [0x19b82dc], ebp
cmp dword [0xb10834], ebp
jle 0x42a8f2
nop
mov eax, dword [esi*4 + 0xc5d4f8]
push eax
push 0x80
push 0x80
push ebp
call fcn.0041f410
mov ecx, dword [esi*4 + 0xc5d4f8]
add esi, ebx
add esp, 0x10
mov dword [ecx + 0xba0c], eax
cmp esi, dword [0xb10834]
jl 0x42a8c0
xor edi, edi
cmp dword [0xb593ac], ebp
jle 0x42a94c
mov esi, 0xd5fde0
mov edx, dword [esi]
mov eax, dword [edx + 0x28010]
push eax
push 0x100
push 0x100
push ebx
call fcn.0041f410
mov ecx, dword [esi]
mov dword [ecx + 0x3001c], eax
mov edx, dword [esi - 8]
push edx
push 0x80
push 0x80
push ebx
call fcn.0041f410
mov dword [esi - 4], eax
add edi, ebx
add esp, 0x20
add esi, 0x14c
cmp edi, dword [0xb593ac]
jl 0x42a901
cmp dword [0xc5d4f0], ebp
jle 0x42a9a8
mov esi, 0x199c710
mov edi, 0x1992f78
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x42a995
mov eax, dword [eax + 0x28010]
push eax
push 0x100
push 0x100
push ebx
call fcn.0041f410
mov ecx, dword [edi]
lea edx, [esi - 8]
push edx
push 0
mov dword [ecx + 0x3001c], eax
call fcn.0041f080
add esp, 0x18
mov dword [esi], eax
add ebp, ebx
add edi, 0xf2c
add esi, 0x10
cmp ebp, dword [0xc5d4f0]
jl 0x42a960
xor ebp, ebp
cmp dword [0x1493cd4], ebp
jle 0x42aa0b
mov esi, 0x19a28b4
mov edi, 0x14c1228
lea esp, [esp]
mov eax, dword [edi]
test eax, eax
je 0x42a9f5
mov eax, dword [eax + 0x28010]
push eax
push 0x100
push 0x100
push ebx
call fcn.0041f410
mov ecx, dword [edi]
lea edx, [esi - 8]
push edx
push 0
mov dword [ecx + 0x3001c], eax
call fcn.0041f080
add esp, 0x18
mov dword [esi], eax
add ebp, ebx
add edi, 0xf2c
add esi, 0xd4
cmp ebp, dword [0x1493cd4]
jl 0x42a9c0
mov eax, dword [0xd748bc]
mov ecx, dword [eax + 0x28010]
push ecx
push 0x100
push 0x100
push ebx
call fcn.0041f410
mov edx, dword [0xd748bc]
mov dword [edx + 0x3001c], eax
mov eax, dword [0x690688]
mov ecx, dword [eax + 0x28010]
push ecx
push 0x100
push 0x100
push ebx
call fcn.0041f410
mov edx, dword [0x690688]
mov dword [edx + 0x3001c], eax
mov eax, dword [0x153aa68]
mov ecx, dword [eax + 0x28010]
push ecx
push 0x100
push 0x100
push 0
call fcn.0041f410
mov edx, dword [0x153aa68]
mov dword [edx + 0x3001c], eax
mov eax, dword [0x8bd248]
mov ecx, dword [eax + 0x28010]
push ecx
push 0x100
push 0x100
push 0
call fcn.0041f410
mov edx, dword [0x8bd248]
mov dword [edx + 0x3001c], eax
mov eax, dword [0x19915a0]
mov ecx, dword [eax + 0x28010]
add esp, 0x40
push ecx
push 0x100
push 0x100
push 0
call fcn.0041f410
mov edx, dword [0x19915a0]
mov dword [edx + 0x3001c], eax
mov eax, dword [0x19a27d8]
push eax
push 0x100
push 0x100
push 0
call fcn.0041f410
mov ecx, dword [0x1992f34]
push ecx
push 0x100
push 0x100
push 0
mov dword [0x19a27dc], eax
call fcn.0041f410
mov edx, dword [0xd748b0]
mov dword [0x1992f38], eax
mov eax, dword [edx + 0x28010]
push eax
push 0x100
push 0x100
push 0
call fcn.0041f410
mov ecx, dword [0xd748b0]
add esp, 0x40
mov dword [ecx + 0x3001c], eax
mov edx, dword [0x19a27d8]
movzx eax, word [0x19a27d6]
movzx ecx, word [0x19a27d4]
push edx
push eax
push ecx
push 0
call fcn.0041f410
mov edx, dword [0x1992f34]
mov dword [0x19a27dc], eax
push edx
movzx eax, word [0x1992f32]
movzx ecx, word [0x1992f30]
push eax
push ecx
push 0
call fcn.0041f410
push 0x1992684
push 0
mov dword [0x1992f38], eax
call fcn.0041f080
push 0x1992f10
push 0
mov dword [0x199268c], eax
call fcn.0041f080
push 0x1992ef0
push 0
mov dword [0x1992f18], eax
call fcn.0041f080
push 0x1992f40
push 0
mov dword [0x1992ef8], eax
call fcn.0041f080
add esp, 0x40
push 0x1992ee0
push 0
mov dword [0x1992f48], eax
call fcn.0041f080
add esp, 8
mov dword [0x1992ee8], eax
call fcn.0041e9f0
mov eax, dword [0x19b82c0]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xa4]
call eax
mov eax, dword [0xc5e4fc]
imul eax, dword [0x107f860]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431830
push 0x442f14
mov dword [0x1493ef0], eax
call fcn.0042ec60
push 0x4418dc
call fcn.0042ec60
add esp, 0xc
mov ecx, dword [esp + 0x3a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004305fb
add esp, 0x39c
ret