Function at 0x495370
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a71fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov eax, 0x7fff
push ebx
mov word [esp + 0x40], ax
mov word [esp + 0x42], ax
mov eax, 0xffff8001
push esi
mov word [esp + 0x48], ax
mov word [esp + 0x4a], ax
xor ebx, ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x70]
push eax
mov byte [esp + 0xcc], 6
call fcn.0040f9a0
mov esi, dword [esp + 0xd0]
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x54]
call fcn.0040f9a0
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
call fcn.0040f9a0
mov eax, dword [esi + 0x5c]
add esi, 0x5c
cmp eax, ebx
mov dword [esp + 0x8c], esi
je 0x495e17
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x495427
mov dword [esp + 0x64], eax
jmp 0x49542c
mov byte [esp + 0x61], 1
push ebp
push edi
mov byte [esp + 0x70], bl
mov ecx, dword [esp + 0x58]
cmp dword [ecx], ebx
je 0x495d56
cmp eax, dword [esp + 0x6c]
jne 0x49544e
cmp byte [esp + 0x70], bl
jne 0x495d56
lea ecx, [esp + 0x58]
call fcn.00402070
mov edi, eax
push edi
push esi
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call fcn.00495ec0
mov ecx, dword [eax + 0x2c]
add esp, 8
mov dword [esp + 0x74], ecx
lea edx, [esp + 0x40]
fld dword [esp + 0x74]
fmul qword [0x4dd478]
push edx
push ecx
mov dword [esp + 0x3c], eax
add eax, 0x54
fstp dword [esp]
push ecx
push eax
push edi
call fcn.004961a0
mov eax, dword [esp + 0x54]
add esp, 0x14
lea edx, [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
je 0x4954b9
mov eax, dword [eax]
jmp 0x4954bb
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x80], eax
je 0x4954ca
mov ecx, dword [eax]
jmp 0x4954cc
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0x89], bl
je 0x4954f5
mov dword [esp + 0x8c], eax
jmp 0x4954fd
mov byte [esp + 0x89], 1
mov byte [esp + 0x90], bl
mov ecx, dword [esp + 0x78]
cmp dword [ecx], ebx
je 0x495a4f
cmp eax, dword [esp + 0x8c]
jne 0x495526
cmp byte [esp + 0x90], bl
jne 0x495a4f
mov cx, word [eax + 4]
movsx edx, word [eax + 6]
movsx eax, cx
sub edx, eax
mov eax, dword [0x4dc498]
inc eax
cmp edx, eax
jle 0x495a24
fild dword [0x4dc498]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x38]
push edx
push eax
fadd qword [0x4a8220]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
fstp dword [esp]
push ecx
push edi
call fcn.00472a50
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, ebx
je 0x495691
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov byte [esp + 0xd0], 7
je 0x495646
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0xd0], 8
je 0x4955c5
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00434ed0
mov ebp, eax
jmp 0x4955c7
xor ebp, ebp
lea edi, [esi + 8]
mov byte [esp + 0xd0], 7
mov ecx, edi
mov dword [esi], ebx
call fcn.0042aa30
lea ecx, [esi + 0x10]
mov byte [esp + 0xd0], 9
call fcn.0042aa30
lea edx, [esp + 0xb0]
mov ecx, ebp
push edx
mov byte [esp + 0xd4], 0xa
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
call fcn.00435490
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0xb0]
mov dword [edi + 4], edx
call fcn.004331c0
mov eax, dword [esi + 4]
mov ecx, ebp
and eax, 0x3fffffff
mov dword [esi + 4], eax
call fcn.00435580
mov edi, dword [esi + 4]
call sub.MSVCRT.dll__ftol
xor eax, edi
and eax, 0x3fffffff
xor eax, edi
mov dword [esi + 4], eax
jmp 0x495648
xor esi, esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0xd0], 6
cmp dword [eax], ebx
je 0x495773
mov edx, dword [esp + 0x24]
mov dword [esi], edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x495793
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov al, byte [esp + 0x28]
cmp al, bl
je 0x495682
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
cmp byte [esp + 0x29], bl
je 0x4957c7
jmp 0x4957c3
cmp dword [esp + 0x14], ebx
je 0x4957cb
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0xd0], 0xb
je 0x495761
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0xd0], 0xc
je 0x4956e5
lea edx, [esp + 0x14]
mov ecx, eax
push edx
call fcn.0043b4a0
mov ebp, eax
jmp 0x4956e7
xor ebp, ebp
lea edi, [esi + 8]
mov byte [esp + 0xd0], 0xb
mov ecx, edi
mov dword [esi], ebx
call fcn.0042aa30
lea ecx, [esi + 0x10]
mov byte [esp + 0xd0], 0xd
call fcn.0042aa30
lea eax, [esp + 0xa0]
mov ecx, ebp
push eax
mov byte [esp + 0xd4], 0xe
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
call fcn.0043b8f0
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0xa0]
mov dword [edi + 4], edx
call fcn.004331c0
mov eax, dword [esi + 4]
mov ecx, ebp
and eax, 0x3fffffff
mov dword [esi + 4], eax
call fcn.0043b9e0
mov ecx, dword [esi + 4]
xor eax, ecx
and eax, 0x3fffffff
xor eax, ecx
mov dword [esi + 4], eax
jmp 0x495763
xor esi, esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0xd0], 6
cmp dword [eax], ebx
jne 0x495785
mov dword [esi], esi
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
jmp 0x4957c7
mov edx, dword [esp + 0x24]
mov dword [esi], edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4957a9
mov dword [eax], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx]
jne 0x4957c7
mov dword [ecx], esi
jmp 0x4957c7
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov al, byte [esp + 0x28]
cmp al, bl
je 0x4957bd
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
cmp byte [esp + 0x29], bl
je 0x4957c7
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x3c]
fild dword [0x4dc498]
mov ax, word [edx + 6]
lea edx, [esp + 0x38]
push ecx
push edx
fadd qword [0x4a8220]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push ecx
fstp dword [esp]
push eax
push ebx
call fcn.00472a50
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, ebx
je 0x4958f4
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0xd0], 0xf
je 0x4958db
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0xd0], 0x10
je 0x49585a
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00434ed0
mov ebp, eax
jmp 0x49585c
xor ebp, ebp
lea edi, [esi + 8]
mov byte [esp + 0xd0], 0xf
mov ecx, edi
mov dword [esi], ebx
call fcn.0042aa30
lea ecx, [esi + 0x10]
mov byte [esp + 0xd0], 0x11
call fcn.0042aa30
lea edx, [esp + 0x98]
mov ecx, ebp
push edx
mov byte [esp + 0xd4], 0x12
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
call fcn.00435490
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x98]
mov dword [edi + 4], edx
call fcn.004331c0
mov eax, dword [esi + 4]
mov ecx, ebp
and eax, 0x3fffffff
mov dword [esi + 4], eax
call fcn.00435580
mov edi, dword [esi + 4]
call sub.MSVCRT.dll__ftol
xor eax, edi
and eax, 0x3fffffff
xor eax, edi
mov dword [esi + 4], eax
jmp 0x4958dd
xor esi, esi
mov ecx, dword [esp + 0x34]
push esi
mov byte [esp + 0xd4], 6
call fcn.00428590
jmp 0x495a22
cmp dword [esp + 0x14], ebx
je 0x4959c3
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0xd0], 0x13
je 0x4958db
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0xd0], 0x14
je 0x495944
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.0043b4a0
mov ebp, eax
jmp 0x495946
xor ebp, ebp
lea edi, [esi + 8]
mov byte [esp + 0xd0], 0x13
mov ecx, edi
mov dword [esi], ebx
call fcn.0042aa30
lea ecx, [esi + 0x10]
mov byte [esp + 0xd0], 0x15
call fcn.0042aa30
lea edx, [esp + 0xb8]
mov ecx, ebp
push edx
mov byte [esp + 0xd4], 0x16
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
call fcn.0043b8f0
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0xb8]
mov dword [edi + 4], edx
call fcn.004331c0
mov eax, dword [esi + 4]
mov ecx, ebp
and eax, 0x3fffffff
mov dword [esi + 4], eax
call fcn.0043b9e0
mov ecx, dword [esi + 4]
xor eax, ecx
and eax, 0x3fffffff
xor eax, ecx
mov dword [esi + 4], eax
jmp 0x4958dd
push 0x62
push 0x4c848c
push 0x4b1640
push ebx
push 0x4b3400
push 0x4dd4c4
call fcn.00441210
movsx ecx, word [esp + 0x6a]
movsx edx, word [esp + 0x68]
mov eax, dword [esp + 0x98]
add esp, 0x18
push ecx
push edx
movsx ecx, word [esp + 0x56]
movsx edx, word [esp + 0x54]
push ecx
push edx
movsx ecx, word [eax + 6]
movsx edx, word [eax + 4]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push ecx
push edx
add eax, 0x40
push 0x4c8444
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x20
xor edi, edi
lea ecx, [esp + 0x78]
call fcn.00402070
cmp eax, ebx
je 0x495a3a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x78]
call fcn.004403e0
mov eax, dword [esp + 0x80]
jmp 0x495504
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], edi
cmp eax, ebx
jne 0x495a65
cmp dword [esp + 0x3c], ebx
je 0x495cef
fild dword [0x4dc498]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x18]
fadd qword [0x4a8220]
push edx
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push ecx
fstp dword [esp]
push edx
push ebx
call fcn.00472a50
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, ebx
je 0x495bb1
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0xd0], 0x17
je 0x495b66
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0xd0], 0x18
je 0x495aed
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00434ed0
mov ebp, eax
jmp 0x495aef
xor ebp, ebp
lea edi, [esi + 8]
mov byte [esp + 0xd0], 0x17
mov ecx, edi
mov dword [esi], ebx
call fcn.0042aa30
lea ecx, [esi + 0x10]
mov byte [esp + 0xd0], 0x19
call fcn.0042aa30
lea edx, [esp + 0xc0]
mov ecx, ebp
push edx
mov byte [esp + 0xd4], 0x1a
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
call fcn.00435490
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esi + 4]
mov ecx, ebp
and eax, 0x3fffffff
mov dword [edi + 4], edx
mov dword [esi + 4], eax
call fcn.00435580
mov edi, dword [esi + 4]
call sub.MSVCRT.dll__ftol
xor eax, edi
and eax, 0x3fffffff
xor eax, edi
mov edi, dword [esp + 0x34]
mov dword [esi + 4], eax
jmp 0x495b68
xor esi, esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0xd0], 6
cmp dword [eax], ebx
je 0x495c97
mov edx, dword [esp + 0x24]
mov dword [esi], edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x495cb7
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov al, byte [esp + 0x28]
cmp al, bl
je 0x495ba2
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
cmp byte [esp + 0x29], bl
je 0x495ceb
jmp 0x495ce7
cmp dword [esp + 0x14], ebx
je 0x495cef
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0xd0], 0x1b
je 0x495c85
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0xd0], 0x1c
je 0x495c05
lea edx, [esp + 0x14]
mov ecx, eax
push edx
call fcn.0043b4a0
mov ebp, eax
jmp 0x495c07
xor ebp, ebp
lea edi, [esi + 8]
mov byte [esp + 0xd0], 0x1b
mov ecx, edi
mov dword [esi], ebx
call fcn.0042aa30
lea ecx, [esi + 0x10]
mov byte [esp + 0xd0], 0x1d
call fcn.0042aa30
lea eax, [esp + 0xa8]
mov ecx, ebp
push eax
mov byte [esp + 0xd4], 0x1e
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
call fcn.0043b8f0
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0xa8]
mov dword [edi + 4], edx
call fcn.004331c0
mov eax, dword [esi + 4]
mov ecx, ebp
and eax, 0x3fffffff
mov dword [esi + 4], eax
call fcn.0043b9e0
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x34]
xor eax, ecx
and eax, 0x3fffffff
xor eax, ecx
mov dword [esi + 4], eax
jmp 0x495c87
xor esi, esi
mov eax, dword [esp + 0x18]
mov byte [esp + 0xd0], 6
cmp dword [eax], ebx
jne 0x495ca9
mov dword [esi], esi
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
jmp 0x495ceb
mov edx, dword [esp + 0x24]
mov dword [esi], edx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x495ccd
mov dword [eax], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx]
jne 0x495ceb
mov dword [ecx], esi
jmp 0x495ceb
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov al, byte [esp + 0x28]
cmp al, bl
je 0x495ce1
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
cmp byte [esp + 0x29], bl
je 0x495ceb
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
cmp edi, ebx
je 0x495d3d
mov esi, dword [edi + 0x18]
cmp esi, ebx
je 0x495d10
push 0x435f80
lea ecx, [esi + 4]
call fcn.0043fe20
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [edi + 0x1c]
cmp esi, ebx
je 0x495d2d
push 0x42be60
lea ecx, [esi + 4]
call fcn.0043fe20
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, edi
call fcn.004331c0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x58]
call fcn.004403e0
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x94]
jmp 0x495432
mov edx, dword [esp + 0x18]
pop edi
pop ebp
cmp dword [edx], ebx
je 0x495e17
lea ecx, [esp + 0x10]
call fcn.004020e0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x495d7b
mov dword [esp + 0x24], eax
jmp 0x495d80
mov byte [esp + 0x21], 1
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x10]
cmp dword [ecx], ebx
je 0x495e17
cmp eax, dword [esp + 0x24]
jne 0x495d9c
cmp byte [esp + 0x28], bl
jne 0x495e17
lea ecx, [esp + 0x10]
call fcn.00402070
mov edx, dword [esp + 0x50]
cmp dword [edx], ebx
jne 0x495dbf
mov dword [eax], eax
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
jmp 0x495e01
mov edx, dword [esp + 0x5c]
mov dword [eax], edx
mov ecx, dword [esp + 0x58]
cmp ecx, ebx
je 0x495de3
mov dword [ecx], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
cmp ecx, dword [edx]
jne 0x495e01
mov dword [edx], eax
jmp 0x495e01
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov cl, byte [esp + 0x60]
cmp cl, bl
je 0x495df7
mov edx, dword [esp + 0x50]
mov dword [edx], eax
cmp byte [esp + 0x61], bl
je 0x495e01
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], eax
call fcn.004403e0
mov eax, dword [esp + 0x18]
jmp 0x495d84
push 0x42be60
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 5
call fcn.0043fe20
push 0x42be60
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 4
call fcn.0043fe20
push 0x435f80
lea ecx, [esp + 0x34]
mov byte [esp + 0xcc], 3
call fcn.0043fe20
push 0x435f80
lea ecx, [esp + 0xc]
mov byte [esp + 0xcc], 2
call fcn.0043fe20
push 0x4331a0
lea ecx, [esp + 0x50]
mov byte [esp + 0xcc], 1
call fcn.0043fe20
push 0x4331a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], bl
call fcn.0043fe20
mov ecx, dword [esp + 0xc0]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret