Function at 0x41126b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
cmp dword [ebp + 0xc], 0x40
jae 0x411282
xor eax, eax
jmp 0x411ac4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x41129f
xor eax, eax
jmp 0x411ac4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
cmp dword [ebp + 0xc], ecx
jae 0x4112b7
xor eax, eax
jmp 0x411ac4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x4550
je 0x4112d5
xor eax, eax
jmp 0x411ac4
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ax, word [edx + 0x16]
and eax, 2
test eax, eax
jne 0x4112ec
xor eax, eax
jmp 0x411ac4
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dx, word [ecx + 0x14]
cmp edx, 0xe0
je 0x411304
xor eax, eax
jmp 0x411ac4
mov eax, dword [ebp - 0x30]
add eax, 0xf8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
jmp 0x411321
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x24], eax
jae 0x411357
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + ecx + 0x14]
mov eax, dword [ebp - 0x1c]
add ecx, dword [eax + edx + 0x10]
cmp ecx, dword [ebp + 0xc]
jbe 0x411355
xor eax, eax
jmp 0x411ac4
jmp 0x411318
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx - 1]
xor edx, edx
div dword [ebp - 0x18]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x41138b
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x24], edx
jae 0x411414
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x48]
jbe 0x4113cc
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x198], ecx
jmp 0x4113d5
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx + 0xc]
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
lea eax, [eax + ecx - 1]
xor edx, edx
div dword [ebp - 0x18]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x3c]
jae 0x41140f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
jmp 0x411382
push 0x40
push 0x3000
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [0x4220d4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411437
xor eax, eax
jmp 0x411ac4
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dx, word [ecx + 6]
imul edx, edx, 0x28
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 0
jmp 0x411476
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x10]
jae 0x411490
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x41146d
mov dword [ebp - 0x24], 0
jmp 0x4114a2
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x24], ecx
jae 0x41153d
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
cmp dword [eax + edx + 0xc], 0
je 0x4114d4
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x1c]
cmp dword [edx + ecx + 0x10], 0
jne 0x4114d6
jmp 0x411499
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
jmp 0x411514
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [eax + edx + 0x10]
jae 0x411538
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x41150b
jmp 0x411499
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0xa0], 0
jbe 0x411626
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0xa4], 0
jbe 0x411626
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0xa0]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
cmp dword [edx], 0
je 0x411626
mov eax, dword [ebp - 0x5c]
add eax, 8
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x24], 0
jmp 0x4115bf
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x68]
jae 0x411615
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cx, word [eax + edx*2]
sar ecx, 0xc
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0xa
jne 0x4115e1
jmp 0x411613
cmp dword [ebp - 0x6c], 3
jne 0x411613
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
add eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x64]
xor esi, esi
mov si, word [edx + ecx*2]
and esi, 0xfff
add eax, esi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x70]
mov dword [edx], ecx
jmp 0x4115b6
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x5c], edx
jmp 0x41158a
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x41163d
jmp 0x411ac2
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x74], edx
cmp dword [ebp - 0x74], 0
je 0x411a55
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0xc], 0
je 0x411a55
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x74]
cmp dword [ecx], 0
je 0x41167e
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x74]
cmp dword [ecx + 0x10], 0
je 0x411693
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x4116a3
cmp dword [ebp - 0x7c], 0
je 0x411a47
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x24], 0
jmp 0x4116c4
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x100
jae 0x4116f7
mov ecx, dword [ebp - 0x184]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov al, byte [ecx]
mov byte [ebp + edx - 0x180], al
mov ecx, dword [ebp - 0x184]
add ecx, dword [ebp - 0x24]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x4116f5
jmp 0x4116f7
jmp 0x4116bb
lea eax, [ebp - 0x180]
push eax
call dword [0x42206c]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x41171d
lea ecx, [ebp - 0x180]
push ecx
call dword [str.B8P]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x411728
jmp 0x411ac0
mov dword [ebp - 0x24], 0
jmp 0x41173a
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
cmp dword [ebp - 0x7c], 0
je 0x4118bf
cmp dword [ebp - 0x78], 0
je 0x4118bf
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + eax*4], 0
jne 0x41177f
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
cmp dword [eax + edx*4], 0
jne 0x41177f
jmp 0x411a47
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + ecx*4]
and eax, 0x80000000
test eax, eax
je 0x4117b7
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + ecx*4]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
jmp 0x4118ba
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + edx*4]
and ecx, 0x80000000
test ecx, ecx
je 0x4117f1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + edx*4]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
jmp 0x4118ba
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x18c], edx
cmp dword [ebp - 0x18c], 0
je 0x411851
cmp dword [ebp + 0x10], 0
je 0x41182c
mov eax, dword [ebp - 0x18c]
add eax, 2
push eax
lea ecx, [ebp - 0x180]
push ecx
call dword [ebp + 0x10]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x411851
mov edx, dword [ebp - 0x18c]
add edx, 2
push edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x4118ba
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x4118ba
cmp dword [ebp + 0x10], 0
je 0x411895
mov ecx, dword [ebp - 0x18c]
add ecx, 2
push ecx
lea edx, [ebp - 0x180]
push edx
call dword [ebp + 0x10]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x4118ba
mov eax, dword [ebp - 0x18c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
jmp 0x411a26
cmp dword [ebp - 0x7c], 0
je 0x411974
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + edx*4], 0
jne 0x4118da
jmp 0x411a47
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + ecx*4]
and eax, 0x80000000
test eax, eax
je 0x41190f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + ecx*4]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
jmp 0x41196f
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x18c], ecx
cmp dword [ebp - 0x18c], 0
je 0x41196f
cmp dword [ebp + 0x10], 0
je 0x41194a
mov edx, dword [ebp - 0x18c]
add edx, 2
push edx
lea eax, [ebp - 0x180]
push eax
call dword [ebp + 0x10]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x41196f
mov ecx, dword [ebp - 0x18c]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
jmp 0x411a26
cmp dword [ebp - 0x78], 0
je 0x411a26
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + eax*4], 0
jne 0x41198f
jmp 0x411a47
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + edx*4]
and ecx, 0x80000000
test ecx, ecx
je 0x4119c6
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + edx*4]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
jmp 0x411a26
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x18c], edx
cmp dword [ebp - 0x18c], 0
je 0x411a26
cmp dword [ebp + 0x10], 0
je 0x411a01
mov eax, dword [ebp - 0x18c]
add eax, 2
push eax
lea ecx, [ebp - 0x180]
push ecx
call dword [ebp + 0x10]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x411a26
mov edx, dword [ebp - 0x18c]
add edx, 2
push edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.00410922
add esp, 8
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x411a40
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x188]
mov dword [edx + ecx*4], eax
jmp 0x411a42
jmp 0x411abe
jmp 0x411731
mov ecx, dword [ebp - 0x74]
add ecx, 0x14
mov dword [ebp - 0x74], ecx
jmp 0x411646
lea edx, [ebp - 0x34]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [0x4220cc]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x28]
add edx, dword [ebp - 4]
mov dword [ebp - 0x190], edx
push 0
push 1
push 0
call dword [ebp - 0x190]
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
jne 0x411a9e
jmp 0x411abc
jmp 0x411aba
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x4220d0]
xor eax, eax
jmp 0x411ac4
mov eax, dword [ebp - 4]
jmp 0x411ac4
jmp 0x411ab5
jmp 0x411aa0
jmp 0x411aa0
jmp 0x411aa0
jmp 0x411aa0
pop esi
mov esp, ebp
pop ebp
ret