Function at 0x413030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41afd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
call sub.MFC70U.DLL_Ordinal_977
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x2c], edi
call sub.MFC70U.DLL_Ordinal_977
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push str.__q__dSAFER__dNOPAUSE__dBATCH
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00404410
mov eax, dword [esi + 0x278]
push eax
lea ecx, [esp + 0xc]
push str._r_d
push ecx
mov byte [esp + 0x38], 2
call fcn.00401880
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00403d00
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.00401510
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4130f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x27c]
mov edi, dword [sym.imp.MSVCR70.dll__wtoi]
push eax
call edi
add esp, 4
cmp eax, 1
jle 0x413169
mov eax, dword [esi + 0x27c]
push eax
lea ecx, [esp + 0xc]
push str._dTextAlphaBits_s
push ecx
call fcn.00401880
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00403d00
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.00401510
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413169
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x280]
push eax
call edi
add esp, 4
cmp eax, 1
jle 0x4131d9
mov eax, dword [esi + 0x27c]
push eax
lea ecx, [esp + 0xc]
push str._dGraphicsAlphaBits_s
push ecx
call fcn.00401880
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00403d00
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.00401510
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4131d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x25c]
push ebx
mov ebx, dword [sym.imp.MSVCR70.dll__wcsicmp]
push ebp
lea ebp, [esi + 0x25c]
push 0x41d8ac
push eax
call ebx
add esp, 8
test eax, eax
jne 0x41326f
lea eax, [esi + 0x264]
push eax
lea ecx, [esp + 0x18]
call fcn.00401510
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 4]
mov edi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, edi
or eax, ecx
jge 0x413234
push edi
lea ecx, [esp + 0x18]
call fcn.004013c0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR70.dll__wcslwr]
mov ecx, dword [esp + 0x18]
mov dword [ecx - 0xc], edi
mov edx, dword [esp + 0x18]
mov word [edx + edi*2], 0
mov eax, dword [esi + 0x274]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._sDEVICE_s__dJPEGQ_d
push edx
call fcn.00401880
add esp, 0x14
jmp 0x413308
mov eax, dword [ebp]
push 0x41d868
push eax
call ebx
add esp, 8
test eax, eax
jne 0x413289
lea eax, [esi + 0x268]
jmp 0x4132e0
mov eax, dword [ebp]
push 0x41d824
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4132a3
lea eax, [esi + 0x26c]
jmp 0x4132e0
mov eax, dword [ebp]
push 0x41d7e0
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4132da
lea eax, [esi + 0x270]
push eax
lea ecx, [esp + 0x18]
call fcn.00401510
push 0x41d8f0
push 0x41d7e0
lea ecx, [esp + 0x1c]
call fcn.0040efd0
jmp 0x4132ea
lea eax, [esi + 0x260]
lea ecx, [esp + 0x14]
push eax
call fcn.00401510
lea ecx, [esp + 0x14]
call fcn.00404b80
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x14]
push str._sDEVICE_s
push edx
call fcn.00401880
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403d00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 6
call fcn.00401510
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x34], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413351
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0xfc]
mov eax, dword [eax - 0xc]
lea ecx, [esi + 0xfc]
add eax, 0xfffffffd
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x30], ecx
call fcn.00401e40
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push str.__sOutputFile_
push ecx
mov byte [esp + 0x40], 7
call fcn.00406420
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 8
call fcn.00401510
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4133c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00403d00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 9
call fcn.00401510
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
lea ecx, [esp + 0x20]
call fcn.00401510
mov eax, dword [ebp]
push 0x41d7e0
push eax
call ebx
add esp, 8
test eax, eax
jne 0x413442
push 0x422d64
call dword [sym.imp.MSVCR70.dll_wcslen]
add esp, 4
push eax
push 0x422d64
lea ecx, [esp + 0x24]
call fcn.00401470
mov ebp, dword [ebp]
mov edi, dword [esi + 0x284]
push 0x41d824
push ebp
call ebx
add esp, 8
test eax, eax
jne 0x41346b
mov eax, dword [esi + 0x284]
test eax, eax
jne 0x41346b
mov edi, 1
jmp 0x41346f
test edi, edi
jle 0x4134ca
push edi
lea eax, [esp + 0x14]
push str._dd.
push eax
call fcn.00401880
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push 0x422d50
push edx
call fcn.00406420
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0xa
call fcn.00401510
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4134e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4134e7
push 0x422d48
call dword [sym.imp.MSVCR70.dll_wcslen]
add esp, 4
push eax
push 0x422d48
lea ecx, [esp + 0x18]
call fcn.00401470
mov esi, dword [esp + 0x1c]
mov edi, dword [esi - 0xc]
mov ebp, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebp
sub eax, edi
or eax, ecx
jge 0x41350f
push edi
lea ecx, [esp + 0x20]
call fcn.004013c0
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.MSVCR70.dll__wcslwr]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
mov dword [esi - 0xc], edi
push edx
mov word [esi + edi*2], 0
call fcn.00403d00
push 0x422d40
push eax
lea eax, [esp + 0x38]
mov bl, 0xb
push eax
mov byte [esp + 0x50], bl
call fcn.00403db0
add esp, 0x1c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0xc
call fcn.00401510
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41357d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x34], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4135a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403d00
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0xd
call fcn.00401510
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x34], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4135e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push 0x41f474
push ecx
call fcn.00406420
push 0x41f474
push eax
lea edx, [esp + 0x3c]
mov bl, 0xe
push edx
mov byte [esp + 0x4c], bl
call fcn.00403db0
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0xf
call fcn.00401510
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebp
pop ebx
jg 0x413649
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41366c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00403d00
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0x10
call fcn.00401510
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4136b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.004012c0
mov edi, dword [esp + 0x38]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4136ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413733
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413759
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4