Function at 0x4100a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x834
xor eax, eax
mov dword [esp], ecx
push ebx
push esi
mov ecx, 0x100
push edi
push ebp
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x848]
cmp esi, eax
je 0x410587
lea eax, [esp + 0x44]
push esi
push 1
push 4
push eax
call fcn.00425540
lea ecx, [esp + 0x54]
add esp, 0x10
mov eax, str.IMST
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410105
or dl, dl
je 0x410101
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410105
add eax, 2
add ecx, 2
or dl, dl
jne 0x4100e5
xor eax, eax
jmp 0x41010a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410587
lea eax, [esp + 0x18]
push esi
mov dword [esp + 0x1c], 0
push 1
push 4
push eax
call fcn.00425540
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, 1
jle 0x410145
push str.Bad_ImageSet_version__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x410587
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x18], 0
push 1
push 4
push eax
call fcn.00425540
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [edx + 0x950]
test ecx, ecx
je 0x410173
push 3
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x950], 0
mov eax, dword [edx + 0x954]
test eax, eax
je 0x4101a8
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0040d040
push ecx
push 8
push eax
call fcn.00424c10
push edi
call fcn.0041c610
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [edx + 0x954], 0
mov dword [edx + 0x958], 1
jle 0x4102b8
mov ebx, eax
push 0x432298
lea eax, [ebx*8]
add eax, 4
push eax
call fcn.0041c620
add esp, 8
test eax, eax
je 0x41020e
lea edi, [eax + 4]
push fcn.0040d040
push fcn.0040ced0
mov dword [eax], ebx
push ebx
push 8
push edi
call fcn.00424d40
mov edx, dword [esp + 0x10]
mov dword [edx + 0x954], edi
jmp 0x41021c
mov edx, dword [esp + 0x10]
mov dword [edx + 0x954], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x954]
test eax, eax
je 0x4102b8
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x41023e
mov eax, 1
jmp 0x4102ba
jle 0x4102b8
lea edi, [eax - 1]
push 0x432298
lea eax, [edi + edi*8]
lea ecx, [edi + eax*4]
lea eax, [edi + ecx*4]
shl eax, 4
add eax, 4
push eax
call fcn.0041c620
add esp, 8
test eax, eax
je 0x41028b
lea ebx, [eax + 4]
push 0x404980
push 0x405010
mov dword [eax], edi
push edi
push 0x950
push ebx
call fcn.00424d40
mov edx, dword [esp + 0x10]
mov dword [edx + 0x950], ebx
jmp 0x410299
mov edx, dword [esp + 0x10]
mov dword [edx + 0x950], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x950]
test eax, eax
je 0x4102b8
mov eax, dword [esp + 0x14]
mov dword [edx + 0x958], eax
mov eax, 1
jmp 0x4102ba
xor eax, eax
test eax, eax
je 0x410587
lea eax, [esp + 0x18]
push esi
mov dword [esp + 0x1c], 0
push 1
push 4
push eax
call fcn.00425540
lea edi, [esp + 0x454]
add esp, 0x10
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x410330
lea edi, [esp + 0x444]
mov ebx, eax
push esi
add edi, 4
call fcn.00425a60
add esp, 4
mov byte [edi - 4], al
push esi
call fcn.00425a60
add esp, 4
mov byte [edi - 3], al
push esi
call fcn.00425a60
add esp, 4
mov byte [edi - 2], al
push esi
call fcn.00425a60
add esp, 4
dec ebx
jne 0x4102fd
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x410580
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
lea eax, [esp + 0x30]
push esi
mov dword [esp + 0x34], 0
push 1
push 4
push eax
call fcn.00425540
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, 0x3ff
nop
push esi
push 1
jb 0x410382
mov eax, 0x3ff
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00425540
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [edx + 0x954]
test ecx, ecx
je 0x4103be
mov eax, dword [esp + 0x1c]
mov ebx, dword [edx + 0x958]
cmp ebx, eax
jle 0x4103be
add ecx, dword [esp + 0x20]
lea edx, [esp + 0x44]
cmp dword [ecx], edx
je 0x4103be
push edx
call fcn.0040d050
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4103ed
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp dword [edx + 0x958], eax
jle 0x4103ed
mov ecx, dword [edx + 0x950]
test ecx, ecx
je 0x4103ed
mov eax, dword [esp + 0x2c]
lea ebx, [eax + ecx - 0x950]
jmp 0x4103f1
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push esi
mov dword [esp + 0x38], 0
push 1
push 4
push eax
call fcn.00425540
mov eax, dword [esp + 0x44]
add esp, 0x10
lea ecx, [esp + 0x38]
push esi
mov dword [esp + 0x40], eax
push 1
mov dword [esp + 0x40], 0
push 4
push ecx
call fcn.00425540
mov ecx, dword [esp + 0x48]
add esp, 0x10
lea edx, [esp + 0x18]
push esi
mov dword [esp + 0x2c], ecx
push 1
mov dword [esp + 0x20], 0
push 4
push edx
call fcn.00425540
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x50]
add esp, 0x10
push esi
push 1
push 4
push ecx
call fcn.00425540
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x34]
add esp, 0x10
lea ebp, [ebx + 0x50]
mov edi, ebp
push esi
push 1
push 4
push ecx
call fcn.00425540
add esp, 0x10
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov byte [eax + ebx + 0x450], al
inc eax
cmp eax, 0x100
jl 0x410491
mov eax, dword [esp + 0x28]
push 8
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, ebx
call fcn.0040f6f0
test eax, eax
je 0x410553
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x410507
xor edi, edi
push esi
add ebp, 4
inc edi
call fcn.00425a60
add esp, 4
mov byte [ebp - 4], al
push esi
call fcn.00425a60
add esp, 4
mov byte [ebp - 3], al
push esi
call fcn.00425a60
add esp, 4
mov byte [ebp - 2], al
push esi
call fcn.00425a60
mov ecx, dword [esp + 0x28]
add esp, 4
mov byte [edi + ebx + 0x44f], al
cmp ecx, edi
jg 0x4104c5
jmp 0x410524
lea ecx, [esp + 0x444]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp], eax
add ebp, 4
lea eax, [esp + 0x844]
cmp ecx, eax
jb 0x41050e
xor edi, edi
mov eax, dword [esp + 0x28]
cmp eax, edi
jle 0x410553
mov ebp, dword [esp + 0x3c]
push esi
mov eax, dword [ebx + 0x24]
push 1
mov ecx, dword [ebx + 0x18]
imul eax, edi
push ebp
add eax, ecx
push eax
inc edi
call fcn.00425540
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp edi, eax
jl 0x410532
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 0x950
add ecx, 8
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
cmp ebx, edx
jg 0x410354
mov eax, 1
jmp 0x410589
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x834
ret 4