Function at 0x4025f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x408694
call fcn.004038d0
mov eax, 0x1c80
call fcn.004038a0
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
push 0xc8
lea eax, [esi + 0x10]
push edi
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
call fcn.00403d40
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x78]
mov dword [esi + 8], eax
push edi
push 0x4c
push ecx
push eax
mov ecx, ebx
call fcn.00401137
test eax, eax
jne 0x402649
push 0x190
jmp 0x4028f5
cmp word [ebp - 0x78], 0x5a4d
jne 0x40281c
push edi
lea eax, [ebp - 0x18]
push 4
push eax
mov eax, dword [esi + 8]
mov ecx, ebx
add eax, dword [ebp - 0x3c]
push eax
call fcn.00401137
test eax, eax
jne 0x402678
push 0x191
jmp 0x4028f5
cmp dword [ebp - 0x18], 0x4550
jne 0x402779
push edi
lea eax, [ebp - 0x2c]
push 0x14
push eax
mov ecx, ebx
call fcn.004010bf
test eax, eax
je 0x40276f
push edi
lea eax, [ebp - 0x220]
push pe_nt_image_headers32
push eax
mov ecx, ebx
call fcn.004010bf
test eax, eax
je 0x40276f
push edi
lea eax, [ebp - 0x540]
push 0x320
push eax
mov ecx, ebx
call fcn.004010bf
test eax, eax
je 0x40276f
movzx edx, word [ebp - 0x2a]
xor ecx, ecx
cmp edx, edi
mov dword [ebp + 0xc], edi
jle 0x4026fe
lea eax, [ebp - 0x52c]
mov dword [ebp + 8], edx
mov edx, dword [eax]
cmp edx, dword [ebp + 0xc]
jbe 0x4026f6
mov ecx, dword [eax - 4]
mov dword [ebp + 0xc], edx
add eax, 0x28
dec dword [ebp + 8]
jne 0x4026e9
mov edi, dword [ebp - 0x1fc]
mov eax, ecx
xor edx, edx
div edi
test edx, edx
je 0x402712
sub edi, edx
add ecx, edi
mov eax, dword [ebp + 0xc]
push 0
add eax, ecx
lea ecx, [ebp - 0x140]
mov dword [esi + 0xc], eax
add eax, dword [esi + 8]
push 0xc8
push ecx
push eax
mov ecx, ebx
call fcn.00401137
test eax, eax
je 0x402764
push 4
lea eax, [ebp - 0x140]
push str.NB10
push eax
call fcn.004042c0
add esp, 0xc
test eax, eax
jne 0x402764
lea eax, [ebp - 0x130]
push eax
call fcn.00403cc0
add eax, 0x11
pop ecx
add dword [esi + 0xc], eax
push 1
pop eax
mov dword [esi + 4], eax
jmp 0x4029f9
push 0x192
jmp 0x4028f5
push dword [esi + 8]
mov ecx, ebx
call fcn.00401187
mov ecx, dword [esi + 8]
mov eax, dword [ebx + 8]
cmp ecx, eax
mov dword [ebp + 8], ecx
jae 0x4027f1
jmp 0x402794
xor edi, edi
sub eax, dword [ebp + 8]
mov ecx, 0x1000
mov dword [ebp + 0xc], ecx
cmp eax, ecx
jae 0x4027a6
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp - 0x1c8c]
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.004010bf
test eax, eax
je 0x4027fd
cmp dword [ebp + 0xc], 0
jbe 0x4027e3
push 0x10
lea eax, [ebp + edi - 0x1c8c]
push str.PORTSOFTHEADVBOB
push eax
call fcn.00404210
add esp, 0xc
test eax, eax
je 0x402807
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x4027c2
mov eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov eax, dword [ebx + 8]
cmp dword [ebp + 8], eax
jb 0x402792
mov dword [esi + 4], 2
jmp 0x4028b7
push 0x193
jmp 0x4028f5
sub edi, dword [esi + 8]
mov dword [esi + 4], 2
add edi, dword [ebp + 8]
mov dword [esi + 0xc], edi
jmp 0x4028c0
push 0x10
lea eax, [ebp - 0x78]
push str.PORTSOFTHEADVBOB
push eax
call fcn.00404210
add esp, 0xc
test eax, eax
jne 0x4028c8
push 0x10
pop eax
cmp byte [ebp + eax - 0x78], 0x23
jne 0x402850
inc eax
cmp eax, 0x4c
jl 0x40283a
add dword [esi + 8], 0x10
jmp 0x4028d5
push dword [esi + 8]
mov ecx, ebx
call fcn.00401187
push edi
lea eax, [ebp - 0xc8c]
push 0x74c
push eax
mov ecx, ebx
call fcn.004010bf
test eax, eax
jne 0x402879
push 0x197
jmp 0x4028f5
lea eax, [ebp - 0xc18]
lea edi, [esi + 0xd8]
push 0x40
push eax
push edi
call fcn.00403ed0
mov eax, 0xffffff28
add esp, 0xc
sub eax, esi
cmp byte [edi], 0x20
jne 0x4028a0
mov byte [edi], 0x5f
inc edi
lea ecx, [eax + edi]
cmp ecx, 0x40
jl 0x402898
and byte [esi + 0x118], 0
mov dword [esi + 4], 4
mov eax, dword [ebx + 8]
sub eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push 1
pop eax
jmp 0x4029f9
cmp byte [ebp + edi - 0x78], 0x23
jne 0x402900
inc edi
cmp edi, 0x3c
jl 0x4028c8
mov eax, dword [ebx + 8]
mov dword [esi + 4], 3
sub eax, dword [esi + 8]
mov dword [esi + 0xc], eax
inc eax
push eax
call fcn.00403c40
mov edi, eax
pop ecx
test edi, edi
jne 0x402907
push 2
call fcn.00403494
pop ecx
jmp 0x4029f9
push 0x195
jmp 0x4028f5
push 0
mov ecx, ebx
push dword [esi + 0xc]
push edi
push dword [esi + 8]
call fcn.00401137
test eax, eax
jne 0x402929
push edi
call fcn.00403b1e
pop ecx
xor eax, eax
jmp 0x4029f9
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x14]
and byte [edi + eax], 0
call fcn.00403009
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.0040303d
test eax, eax
push edi
jne 0x402957
call fcn.00403b1e
pop ecx
xor esi, esi
jmp 0x4029eb
call fcn.00403b1e
pop ecx
lea eax, [esi + 0x10]
push 0x40
push eax
push str.Licenser
lea ecx, [ebp - 0x14]
call fcn.00403079
test eax, eax
je 0x4029de
lea eax, [esi + 0x51]
push 0x40
push eax
push 0x40a3c4
lea ecx, [ebp - 0x14]
call fcn.00403079
test eax, eax
je 0x4029de
lea eax, [esi + 0x92]
push 0x10
push eax
push 0x40a3b4
lea ecx, [ebp - 0x14]
call fcn.00403079
test eax, eax
je 0x4029de
lea eax, [esi + 0xa3]
push 0x24
push eax
push str.MerchantID
lea ecx, [ebp - 0x14]
call fcn.00403079
test eax, eax
je 0x4029de
add esi, 0xc8
push 0x10
push esi
push str.BrandOfferID
lea ecx, [ebp - 0x14]
call fcn.00403079
test eax, eax
je 0x4029de
push 1
pop esi
jmp 0x4029eb
push 0x196
call fcn.00403494
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403032
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8