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

Disassembly:
push 0xffffffffffffffff
push 0x5d0a2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x78], 0x5e2838
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebp
mov edi, 0x5e76d8
mov dword [esp + 0xc4], ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 1
call fcn.004b6ca0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
lea esi, [ebx + 0x2e0]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0xd0], 2
call fcn.004e00e0
test eax, eax
jne 0x49bc1b
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 1
call fcn.0042bd50
mov dword [esp + 0x64], edi
mov eax, dword [esp + 0x68]
mov byte [esp + 0xc4], 3
cmp eax, ebp
je 0x49bbef
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x64], 0x5e262c
mov dword [esp + 0x78], 0x5e2838
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc4], 4
cmp eax, ebp
je 0x49c203
jmp 0x49c1fa
mov dword [esp + 0x50], 0x5e27e8
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov ecx, esi
mov byte [esp + 0xc4], 5
call fcn.004e3060
test al, al
je 0x49bc82
mov ecx, esi
call fcn.004d7b50
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
jne 0x49bc63
mov ecx, esi
call fcn.004d7b50
fstp qword [esp + 0x3c]
mov ecx, esi
call fcn.004d7b80
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
jne 0x49bcaa
mov ecx, esi
call fcn.004d7b80
fstp qword [esp + 0x44]
jmp 0x49bcaa
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.004d7f80
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x54]
shl ecx, 5
lea eax, [ecx + edx - 0x20]
lea ecx, [esp + 0x2c]
push eax
call fcn.004b6d90
mov dword [esp + 0x8c], 0x5e522c
mov ecx, esi
mov byte [esp + 0xc4], 6
call fcn.004e3060
test al, al
je 0x49bdbb
mov al, byte [esp + 0xd4]
mov edi, dword [esp + 0xe4]
test al, al
je 0x49bd0a
cmp dword [ebx + 0xbec], 0xffffffff
je 0x49bd0a
fild dword [ebx + 0xba8]
mov esi, dword [esp + 0xdc]
fdiv qword [ebx + 0xbb0]
fst qword [esp + 0x18]
fstp qword [esp + 0xac]
jmp 0x49be6a
lea ecx, [esp + 0x2c]
call fcn.004b7060
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x49bd24
fld qword [esp + 0x44]
jmp 0x49bd2d
lea ecx, [esp + 0x2c]
call fcn.004b7060
mov esi, dword [esp + 0xdc]
mov eax, edi
sub eax, esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdiv st(1)
fstp qword [esp + 0x18]
fstp st(0)
call fcn.004b7040
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
je 0x49bd62
fld qword [esp + 0x3c]
jmp 0x49bd6b
lea ecx, [esp + 0x2c]
call fcn.004b7040
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xd8]
sub ecx, edx
mov edx, dword [0x6274bc]
sub ecx, 2
inc edx
imul ecx, edx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fdivrp st(1)
fld qword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x49bda5
fstp st(0)
fld qword [esp + 0x18]
fmul qword [0x5e7930]
fst qword [esp + 0x18]
fstp qword [esp + 0xac]
jmp 0x49be6a
mov eax, dword [esp + 0xe0]
mov edi, dword [esp + 0xd8]
sub eax, edi
lea ecx, [esp + 0x2c]
sub eax, 2
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x5e7930]
fstp qword [esp + 0x18]
call fcn.004b7040
fdivr qword [esp + 0x18]
mov edi, dword [esp + 0xe4]
mov edx, dword [esp + 0xdc]
mov ecx, edi
sub ecx, edx
sub ecx, 2
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x2c]
fstp qword [esp + 0x18]
fild dword [esp + 0x10]
fmul qword [0x5e7930]
fstp qword [esp + 0x10]
call fcn.004b7060
fdivr qword [esp + 0x10]
fidiv dword [0x62743c]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x49be4d
lea ecx, [esp + 0x2c]
call fcn.004b7060
fdivr qword [esp + 0x10]
fidiv dword [0x62743c]
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xdc]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], eax
cmp dword [0x6274a0], ebp
je 0x49bf60
mov ebp, dword [esp + 0xcc]
push 0x58
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov dword [esp + 0x10], eax
mov ecx, dword [0x6274a0]
fild dword [esp + 0x10]
fidiv dword [0x6274a0]
fmul qword [0x5e4288]
fst qword [esp + 0xac]
fcom qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x49bebf
fmul qword [0x5e2790]
add ecx, ecx
jmp 0x49beaa
mov eax, dword [0x6274bc]
fstp qword [esp + 0xac]
test eax, eax
jne 0x49bf67
cmp dword [esp + 0xd0], 1
jne 0x49bf67
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x18], edx
push ecx
lea edx, [esi - 0x50]
push 0x61e048
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edi
push 0x61e02c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edx
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0046c5e0
add esp, 0x10
mov eax, dword [eax]
mov edx, dword [ebp]
lea ebx, [esp + 0x18]
push 0x2a
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0xd4], 7
call dword [edx + 0x70]
lea ecx, [esp + 0x10]
mov byte [esp + 0xc4], 6
call sub.mfc42u.dll_CString::CString
mov ebx, dword [esp + 0x4c]
jmp 0x49bf67
mov ebp, dword [esp + 0xcc]
mov al, byte [esp + 0xd4]
test al, al
je 0x49bf90
cmp dword [ebx + 0xbec], 0xffffffff
je 0x49bf90
fild dword [ebx + 0xbac]
fdiv qword [ebx + 0xbb8]
fstp qword [esp + 0xb4]
jmp 0x49bfde
lea ecx, [ebx + 0x2e0]
call fcn.004dfab0
fld qword [0x5e27a0]
fsub qword [eax + 0x30]
lea ecx, [ebx + 0x2e0]
fdivr qword [0x5e27a0]
fstp qword [esp + 0x18]
call fcn.004dfab0
fld qword [0x5e27a0]
fsub qword [eax + 0x28]
fdivr qword [0x5e27a0]
fld qword [esp + 0x18]
fmul qword [esp + 0xac]
fdiv st(1)
fstp qword [esp + 0xb4]
fstp st(0)
lea ecx, [ebx + 0x2e0]
call fcn.004e3060
test al, al
je 0x49c05b
fld qword [esp + 0xb4]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x78]
fmul qword [esp + 0x44]
push eax
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xe8]
fiadd dword [esp + 0xec]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0xec]
mov dword [edx + 4], esi
fmul qword [0x5e2790]
mov dword [edx + 8], ecx
lea ecx, [esp + 0xa4]
mov dword [edx + 0xc], edi
mov edx, dword [esp + 0xe8]
fstp qword [esp + 0xbc]
push edx
push eax
push 0
push ecx
push ebp
mov ecx, ebx
call fcn.0049c220
jmp 0x49c15b
mov edx, dword [esp + 0xd0]
mov eax, dword [0x62743c]
xor ebp, ebp
lea esi, [edx - 1]
imul esi, eax
test eax, eax
jle 0x49c15b
mov ebx, esi
lea eax, [esi + 1]
shl ebx, 5
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x58]
cmp ecx, eax
je 0x49c15b
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x2c]
lea eax, [ebx + edx]
push eax
call fcn.004b6d90
mov ecx, dword [0x62743c]
cmp ecx, 1
jne 0x49c0cd
fld qword [esp + 0xb4]
fmul qword [esp + 0x44]
fiadd dword [esp + 0xe4]
fmul qword [0x5e2790]
jmp 0x49c0dc
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x78]
push eax
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xe4]
sub esp, 0x10
mov edx, esp
fstp qword [esp + 0xbc]
mov dword [edx], eax
mov eax, dword [esp + 0xf8]
push 0
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xec]
push esi
mov dword [edx + 0xc], edi
lea edx, [esp + 0xb0]
push edx
push eax
call fcn.0049c220
mov ecx, dword [esp + 0x28]
mov eax, dword [0x62743c]
inc esi
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
add ebx, 0x20
inc ebp
add ecx, edi
cmp ebp, eax
mov dword [esp + 0x10], ecx
jl 0x49c087
mov dword [esp + 0x8c], 0x5e5240
mov dword [esp + 0x50], 0x5e27e8
mov esi, dword [esp + 0x54]
mov byte [esp + 0xc4], 8
test esi, esi
je 0x49c1a0
mov edi, dword [esp + 0x58]
test edi, edi
je 0x49c197
mov ecx, esi
call fcn.0042bd50
add esi, 0x20
dec edi
jne 0x49c186
mov esi, dword [esp + 0x54]
push esi
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], esi
mov byte [esp + 0xc4], 1
call fcn.0042bd50
mov dword [esp + 0x64], 0x5e76d8
mov eax, dword [esp + 0x68]
mov byte [esp + 0xc4], 9
test eax, eax
je 0x49c1db
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x78], 0x5e2838
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc4], 0xa
test eax, eax
je 0x49c203
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb8
ret 0x1c