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

Disassembly:
push 0xffffffffffffffff
push 0x5b3cdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x620368]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov dword [esp + 0x54], eax
mov ebp, ecx
mov dword [esp + 0xc], 1
call fcn.004d2a90
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
push ebx
mov dword [0x6293c0], eax
mov dword [0x6293bc], ecx
mov dword [0x629414], ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0xdc
mov dword [0x629410], eax
call sub.d3d8.dll_Direct3DCreate8
xor esi, esi
cmp eax, esi
mov dword [0x62942c], eax
jne 0x4d384d
mov eax, 2
jmp 0x4d42db
push 0x4d2570
push eax
mov ecx, 0x629460
call fcn.004f2a70
test eax, eax
jne 0x4d386b
mov eax, 0x40
jmp 0x4d42db
push 0x629420
push 0x629424
push 0x629428
push 1
push 0x10
push 0x258
push 0x320
mov ecx, 0x629460
call fcn.004f27d0
test eax, eax
jne 0x4d38a0
mov eax, 0x80
jmp 0x4d42db
push edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
lea edx, [esp + 0x20]
push edx
mov ecx, 0x629460
mov dword [esp + 0x68], esi
call fcn.004f2d30
mov eax, dword [0x629420]
push eax
mov ecx, 0x629460
call fcn.004f27b0
mov edi, eax
cmp edi, esi
mov dword [esp + 0x14], edi
jne 0x4d3906
mov ecx, dword [0x629420]
push ecx
push 0x5ce608
call fcn.004fa100
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00507820
mov eax, 0x80
jmp 0x4d42da
push edi
mov ecx, ebp
call fcn.004d25f0
test al, al
je 0x4d3927
push 0x200
push ebx
mov ecx, ebp
mov dword [esp + 0x18], 0x201
call fcn.004d3770
mov edx, dword [0x629428]
mov eax, dword [0x629424]
push edx
push eax
mov ecx, edi
call fcn.004f26a0
mov esi, eax
test esi, esi
jne 0x4d396f
mov ecx, dword [0x629428]
mov edx, dword [0x629424]
push ecx
push edx
push 0x5ce5ec
call fcn.004fa100
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00507820
mov eax, 0x80
jmp 0x4d42da
mov al, byte [esp + 0x78]
test al, al
je 0x4d39ab
push 4
push 0x5ce5e4
push edi
call fcn.0057ba84
add esp, 0xc
test eax, eax
jne 0x4d39ab
mov ecx, edi
call fcn.004f2690
cmp dword [eax + 0xc], 0x16
jne 0x4d39ab
lea ecx, [esp + 0x20]
call fcn.00507820
mov eax, 0x400
jmp 0x4d42da
cmp dword [esi + 0xc], 0x20
jne 0x4d39b9
or dword [esp + 0x10], 0x100
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov byte [esp + 0x68], 1
call fcn.004f2ae0
movzx ecx, byte [esp + 0x78]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
jmp 0x4d3a00
xor eax, eax
mov ecx, 0xd
mov edi, 0x6293dc
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
mov dword [0x6293f8], eax
mov eax, dword [esp + 0x74]
mov dword [0x6293e0], eax
mov al, byte [esp + 0x78]
test al, al
mov dword [0x6293dc], ecx
mov dword [0x6293f4], ebx
mov ecx, dword [ebp + 4]
mov edi, 1
mov dword [0x6293e8], ecx
mov dword [0x6293f0], edi
je 0x4d3a60
mov ecx, dword [esp + 0x14]
call fcn.004f2690
mov edx, dword [eax + 0xc]
mov dword [0x6293e4], edx
jmp 0x4d3a6e
mov eax, dword [esi + 0x10]
mov dword [0x6293e4], eax
mov dword [0x629408], edx
mov eax, dword [0x62942c]
mov dword [0x629404], edi
mov dword [0x6293fc], edi
mov ecx, dword [esi + 0x14]
push 0x629430
mov dword [0x629400], ecx
mov edx, dword [esi + 0xc]
push 0x6293dc
mov dword [0x629440], edx
mov edx, dword [esi + 0xc]
mov ecx, dword [eax]
push edx
mov edx, dword [0x629420]
push ebx
push edi
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
mov dword [0x629438], eax
jge 0x4d3b2e
cmp eax, 0x8876017c
je 0x4d3aea
cmp eax, 0x8876086a
je 0x4d3ae3
cmp eax, 0x8876086c
je 0x4d3adc
push eax
push 0x5ce5bc
call fcn.004fa100
add esp, 8
jmp 0x4d3af7
push 0x5ce528
jmp 0x4d3aef
push 0x5ce4b8
jmp 0x4d3aef
push 0x5ce430
call fcn.004fa0d0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4d3b12
xor edx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], 0x20
jmp 0x4d3a00
lea ecx, [esp + 0x3c]
call fcn.00507820
lea ecx, [esp + 0x20]
call fcn.00507820
mov eax, 0x10
jmp 0x4d42da
mov edx, dword [0x6293e4]
mov eax, dword [0x62942c]
mov ecx, dword [eax]
push 0x31545844
push 3
push 0
push edx
mov edx, dword [0x629420]
push edi
push edx
push eax
call dword [ecx + 0x28]
cmp eax, 0x8876086a
jne 0x4d3b5f
mov byte [0x606468], 0
mov edx, dword [0x6293e4]
mov eax, dword [0x62942c]
mov ecx, dword [eax]
push 0x33545844
push 3
push 0
push edx
mov edx, dword [0x629420]
push edi
push edx
push eax
call dword [ecx + 0x28]
cmp eax, 0x8876086a
jne 0x4d3b90
mov byte [0x606468], 0
mov edx, dword [0x6293e4]
mov eax, dword [0x62942c]
mov ecx, dword [eax]
push 0x35545844
push 3
push 0
push edx
mov edx, dword [0x629420]
push edi
push edx
push eax
call dword [ecx + 0x28]
cmp eax, 0x8876086a
jne 0x4d3bc1
mov byte [0x606468], 0
mov eax, dword [0x629430]
mov ecx, dword [eax]
push 0x6292e8
push eax
call dword [ecx + 0x1c]
test eax, eax
mov dword [0x629438], eax
jge 0x4d3c04
push eax
push 0x5ce404
call fcn.004fa100
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.00507820
lea ecx, [esp + 0x20]
call fcn.00507820
mov eax, 8
jmp 0x4d42da
mov al, byte [esp + 0x78]
test al, al
jne 0x4d3c25
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push 0x40
push edx
push eax
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x629430]
mov ecx, dword [eax]
push 0x6293c4
push eax
call dword [ecx + 0xa4]
push 0x13380
call fcn.0057a6d0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x64], 2
je 0x4d3c62
mov edx, dword [0x629430]
push edx
mov ecx, eax
call fcn.004cbe30
jmp 0x4d3c64
xor eax, eax
push 0x629434
push 0
mov byte [esp + 0x6c], 1
mov dword [ebp + 0x14], eax
call fcn.00547adb
mov eax, dword [0x629434]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, ebp
call fcn.004d2510
mov ecx, ebp
mov dword [0x629444], eax
call fcn.004d2450
mov ecx, ebp
mov dword [0x629448], eax
call fcn.004d24b0
mov dword [0x62944c], eax
mov dword [0x65ae10], 0
mov dword [0x65ae0c], 0
mov dword [0x65ae08], 0
mov dword [0x65ae04], 0
mov dword [0x65adfc], 0
mov dword [0x65adf8], 0
mov dword [0x65adf4], 0
mov dword [0x65adf0], 0
mov dword [0x65ade8], 0
mov dword [0x65ade4], 0
mov dword [0x65ade0], 0
mov dword [0x65addc], 0
mov dword [0x65ae14], 0x3f800000
mov dword [0x65ae00], 0x3f800000
mov dword [0x65adec], 0x3f800000
mov dword [0x65add8], 0x3f800000
mov dword [0x65ae50], 0
mov dword [0x65ae4c], 0
mov dword [0x65ae48], 0
mov dword [0x65ae44], 0
mov dword [0x65ae3c], 0
mov dword [0x65ae38], 0
mov dword [0x65ae34], 0
mov dword [0x65ae30], 0
mov dword [0x65ae28], 0
mov dword [0x65ae24], 0
mov dword [0x65ae20], 0
mov dword [0x65ae1c], 0
mov dword [0x65ae54], 0x3f800000
mov dword [0x65ae40], 0x3f800000
mov dword [0x65ae2c], 0x3f800000
mov dword [0x65ae18], 0x3f800000
mov dword [0x65ae90], 0
mov dword [0x65ae8c], 0
mov dword [0x65ae88], 0
mov dword [0x65ae84], 0
mov dword [0x65ae7c], 0
mov dword [0x65ae78], 0
mov dword [0x65ae74], 0
mov dword [0x65ae70], 0
mov dword [0x65ae68], 0
mov dword [0x65ae64], 0
mov dword [0x65ae60], 0
mov dword [0x65ae5c], 0
mov dword [0x65ae94], 0x3f800000
mov dword [0x65ae80], 0x3f800000
mov dword [0x65ae6c], 0x3f800000
mov dword [0x65ae58], 0x3f800000
mov dword [0x65aed0], 0
mov dword [0x65aecc], 0
mov dword [0x65aec8], 0
mov dword [0x65aec4], 0
mov dword [0x65aebc], 0
mov dword [0x65aeb8], 0
mov dword [0x65aeb4], 0
mov dword [0x65aeb0], 0
mov dword [0x65aea8], 0
mov dword [0x65aea4], 0
mov dword [0x65aea0], 0
mov dword [0x65ae9c], 0
mov dword [0x65aed4], 0x3f800000
mov dword [0x65aec0], 0x3f800000
mov dword [0x65aeac], 0x3f800000
fild dword [esp + 0x70]
mov edx, dword [0x629430]
push 0
push 0x629454
fmul dword [0x5bba5c]
push 0x20
push 0x20
push 0x3f800000
fstp dword [0x65b018]
push edx
fild dword [esp + 0x8c]
mov dword [0x65ae98], 0x3f800000
mov dword [0x65af10], 0
mov dword [0x65af0c], 0
fmul dword [0x5bba5c]
mov dword [0x65af08], 0
mov dword [0x65af04], 0
mov dword [0x65aefc], 0
fstp dword [0x65b02c]
mov dword [0x65aef8], 0
mov dword [0x65aef4], 0
mov dword [0x65aef0], 0
mov dword [0x65aee8], 0
mov dword [0x65aee4], 0
mov dword [0x65aee0], 0
mov dword [0x65aedc], 0
mov dword [0x65af14], 0x3f800000
mov dword [0x65af00], 0x3f800000
mov dword [0x65aeec], 0x3f800000
mov dword [0x65aed8], 0x3f800000
mov dword [0x65afd0], 0
mov dword [0x65afcc], 0
mov dword [0x65afc8], 0
mov dword [0x65afc4], 0
mov dword [0x65afbc], 0
mov dword [0x65afb8], 0
mov dword [0x65afb4], 0
mov dword [0x65afb0], 0
mov dword [0x65afa8], 0
mov dword [0x65afa4], 0
mov dword [0x65afa0], 0
mov dword [0x65af9c], 0
mov dword [0x65afd4], 0x3f800000
mov dword [0x65afc0], 0x3f800000
mov dword [0x65b010], 0
mov dword [0x65b004], 0
mov dword [0x65affc], 0
mov dword [0x65aff8], 0
mov dword [0x65aff4], 0
mov dword [0x65aff0], 0
mov dword [0x65afe8], 0
mov dword [0x65afe4], 0
mov dword [0x65afe0], 0
mov dword [0x65afdc], 0
mov dword [0x65b014], 0x3f800000
mov dword [0x65b000], 0x3f800000
mov dword [0x65afec], 0x3f800000
mov dword [0x65afd8], 0x3f800000
mov dword [0x65b050], 0
mov dword [0x65b04c], 0
mov dword [0x65b048], 0
mov dword [0x65b044], 0
mov dword [0x65b03c], 0
mov dword [0x65b038], 0
mov dword [0x65b034], 0
mov dword [0x65b030], 0
mov dword [0x65b028], 0
mov dword [0x65b024], 0
mov dword [0x65b020], 0
mov dword [0x65b01c], 0
mov dword [0x65b054], 0x3f800000
mov dword [0x65b040], 0x3f800000
mov dword [0x65af98], 0x3f800000
mov dword [0x65afac], 0xbf800000
mov dword [0x65b008], 0x3f800000
mov dword [0x65b00c], 0x3f800000
call fcn.00547275
push 0
push 0x629458
push 8
push 8
mov eax, dword [0x629430]
push 0x3f800000
push 0x3f800000
push 0x3f800000
push eax
call fcn.00546df8
mov eax, dword [0x629430]
mov ecx, dword [eax]
push 0
push 0x3f800000
push 0xff000000
push 3
push 0
push 0
push eax
call dword [ecx + 0x90]
mov ecx, ebp
call fcn.004d2840
test al, al
jne 0x4d423b
lea ecx, [esp + 0x3c]
call fcn.00507820
lea ecx, [esp + 0x20]
call fcn.00507820
xor eax, eax
jmp 0x4d42da
mov ecx, ebp
call fcn.004d2770
test al, al
je 0x4d4222
call fcn.004cf770
mov cl, byte [0x629334]
mov esi, dword [esp + 0x14]
cmp eax, 0x4000000
setb dl
cmp eax, 0x6400000
seta al
shr cl, 3
push 3
not cl
and cl, 1
push 0x5ce400
push esi
mov byte [0x629450], dl
mov byte [0x629451], al
mov byte [0x65b507], cl
call fcn.0057ba84
add esp, 0xc
test eax, eax
jne 0x4d429b
mov byte [0x65b504], 1
jmp 0x4d42af
push 4
push 0x5ce5e4
push esi
call fcn.0057ba84
add esp, 0xc
test eax, eax
jne 0x4d42c4
mov byte [0x65b505], 1
mov byte [0x65b506], 1
mov byte [0x629450], 1
lea ecx, [esp + 0x3c]
call fcn.00507820
lea ecx, [esp + 0x20]
call fcn.00507820
mov eax, dword [esp + 0x10]
pop edi
mov ecx, dword [esp + 0x58]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c]
pop ebx
xor ecx, esp
call fcn.0057b3d4
add esp, 0x58
ret 0x18