Function at 0x41d930
Capabilities:
Parse pe header

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0xc
mov ebp, eax
xor esi, esi
cmp dword [eax + 0x48], 0
jne 0x41da25
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, 2
mov eax, dword [ebp + 0x10]
call dword [ecx]
mov ecx, eax
cmp dword [ebp + 0x48], 0
je 0x41da34
mov ebx, 1
mov edx, 0xfffffffe
mov eax, ebp
call fcn.004239e0
cmp byte [ecx], 0x4d
jne 0x41d9f8
cmp byte [ecx + 1], 0x5a
jne 0x41d9f8
cmp dword [ebp + 0x48], 0
je 0x41da4e
mov edx, 0x40
mov eax, ebp
call fcn.004239c0
mov ecx, eax
cmp dword [ebp + 0x48], 0
je 0x41da62
mov edx, dword [eax + 0x3c]
mov ebx, 1
sub edx, 0x40
mov eax, ebp
call fcn.004239e0
cmp dword [ebp + 0x48], 0
je 0x41da7d
mov edx, 4
mov eax, ebp
call fcn.004239c0
cmp byte [eax], 0x50
jne 0x41da91
cmp byte [eax + 1], 0x45
jne 0x41da91
cmp byte [eax + 2], 0
jne 0x41da91
cmp byte [eax + 3], 0
jne 0x41da91
mov esi, dword [ecx + 0x3c]
add esi, 4
cmp dword [ebp + 0x48], 0
je 0x41dacd
mov edx, 0x14
mov eax, ebp
call fcn.004239c0
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x41dae1
xor al, al
add esp, 0xc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov edx, 2
call fcn.004239c0
jmp 0x41d955
mov eax, dword [ebp]
mov ebx, 1
mov edi, dword [eax]
mov edx, 0xfffffffe
mov eax, dword [ebp + 0x10]
call dword [edi + 4]
jmp 0x41d972
mov ecx, dword [ebp]
mov ecx, dword [ecx]
mov edx, 0x40
mov eax, dword [ebp + 0x10]
call dword [ecx]
jmp 0x41d997
mov edi, dword [ebp]
mov ebx, 1
mov edx, dword [eax + 0x3c]
mov edi, dword [edi]
sub edx, 0x40
mov eax, dword [ebp + 0x10]
call dword [edi + 4]
jmp 0x41d9b5
mov eax, dword [ebp]
mov ebx, dword [eax]
mov edx, 4
mov eax, dword [ebp + 0x10]
call dword [ebx]
jmp 0x41d9cb
cmp dword [ebp + 0x48], 0
je 0x41dab0
mov edx, dword [ecx + 0x3c]
mov ebx, 1
sub edx, 4
mov eax, ebp
neg edx
call fcn.004239e0
jmp 0x41d9f8
mov edi, dword [ebp]
mov edx, dword [ecx + 0x3c]
mov ebx, 1
sub edx, 4
mov edi, dword [edi]
mov eax, dword [ebp + 0x10]
neg edx
call dword [edi + 4]
jmp 0x41d9f8
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, 0x14
mov eax, dword [ebp + 0x10]
call dword [ecx]
jmp 0x41da0e
mov dword [esp], eax
mov edx, eax
mov eax, ebp
call fcn.0041d0f0
test al, al
jne 0x41dd13
mov eax, dword [esp]
cmp word [eax + 0x10], 0
jbe 0x41db30
cmp dword [ebp + 0x48], 0
je 0x41dd69
movzx edx, word [eax + 0x10]
mov eax, ebp
call fcn.004239c0
mov dx, word [eax]
cmp dx, 0x20b
jne 0x41dd7f
mov byte [ebp + 0x50], 1
or byte [ebp + 0x2c], 0x40
mov eax, dword [eax + 0x70]
mov dword [ebp + 0x4c], eax
mov eax, dword [esp]
movzx eax, word [eax + 0x10]
add eax, 0x14
add eax, esi
mov dword [ebp + 0x14], eax
mov al, byte [ebp + 0x24]
cmp al, 0x14
je 0x41dd9a
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x34], eax
mov eax, dword [esp]
movzx eax, word [eax + 2]
mov dword [ebp + 0x30], eax
imul ecx, eax, 0x28
test eax, eax
jbe 0x41db85
cmp dword [ebp + 0x48], 0
jne 0x41dda6
mov eax, dword [ebp]
mov ebx, dword [eax]
mov edx, ecx
mov eax, dword [ebp + 0x10]
call dword [ebx]
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x41dd9a
mov edx, dword [esp]
mov eax, ebp
call fcn.0041d440
cmp al, 2
jne 0x41da1b
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov eax, dword [edx + eax*4 - 4]
add dword [ebp + 0x14], ecx
mov dword [esp + 4], eax
cmp dword [ebp + 0x30], 0
jbe 0x41dbd2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
add eax, dword [edx + 0x10]
cmp eax, ebx
jbe 0x41dbc9
test byte [edx + 0x1c], 4
jne 0x41dbc9
mov ebx, eax
inc esi
add ecx, 4
cmp esi, dword [ebp + 0x30]
jb 0x41dbb5
mov dword [ebp + 0x28], ebx
sub ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x48], 0
je 0x41ddb4
mov edx, ebx
mov eax, ebp
call fcn.004239c0
mov dword [ebp + 0x20], eax
test eax, eax
je 0x41dd9a
mov eax, dword [ebp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
cmp eax, dword [ebp + 0x40]
jne 0x41dc5c
mov eax, dword [esp]
cmp dword [eax + 8], 0
je 0x41dc32
cmp dword [ebp + 0x48], 0
je 0x41ddc5
mov edx, 4
mov eax, ebp
call fcn.004239c0
test eax, eax
je 0x41dc32
mov edx, dword [esp + 4]
mov eax, dword [eax]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x10]
cmp edx, 4
ja 0x41ddd9
mov eax, dword [esp + 4]
mov dword [eax + 0x10], 0
mov eax, dword [esp + 4]
mov dword [eax + 0x24], 0
dec dword [esp + 8]
xor ecx, ecx
cmp dword [esp + 8], 0
jbe 0x41dc95
xor esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [esi + eax]
cmp dword [eax + 0x10], 0
jbe 0x41de66
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x41dc8b
mov edx, dword [ebp + 0x20]
add edx, ebx
mov ebx, dword [ebp + 0x14]
sub edx, ebx
mov dword [eax + 0x24], edx
inc ecx
add esi, 4
cmp ecx, dword [esp + 8]
jb 0x41dc67
mov eax, dword [esp + 4]
mov edx, dword [ebp + 0x40]
cmp eax, edx
je 0x41dcd2
mov ecx, 4
lea edi, [edx + 0x10]
mov esi, dword [edx + 0x24]
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x41dcd2
lea ebx, [ecx - 4]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp + 0x40]
add dword [eax + 0x24], 4
xor ecx, ecx
cmp dword [ebp + 0x30], 0
jbe 0x41dd07
xor edx, edx
mov esi, dword [ebp + 8]
mov esi, dword [edx + esi]
mov eax, dword [esi + 0xc]
cmp byte [eax], 0x2f
jne 0x41dcfe
inc eax
call fcn.00417cd0
mov ebx, dword [ebp + 0x40]
sub eax, 4
mov ebx, dword [ebx + 0x24]
add ebx, eax
mov dword [esi + 0xc], ebx
inc ecx
add edx, 4
cmp ecx, dword [ebp + 0x30]
jb 0x41dcdc
mov al, 2
add esp, 0xc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, ebp
call fcn.004243a0
cmp al, 2
jne 0x41da1b
cmp dword [ebp + 0x48], 0
je 0x41dd47
mov edx, 0x14
mov eax, ebp
call fcn.004239c0
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x41dd58
xor al, al
add esp, 0xc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, 0x14
mov eax, dword [ebp + 0x10]
call dword [ecx]
jmp 0x41dd34
mov dword [esp], eax
mov edx, eax
mov eax, ebp
call fcn.0041d0f0
jmp 0x41daf5
mov eax, dword [ebp]
mov edx, dword [esp]
mov ecx, dword [eax]
movzx edx, word [edx + 0x10]
mov eax, dword [ebp + 0x10]
call dword [ecx]
jmp 0x41db14
cmp dx, 0x10b
jne 0x41dd8e
mov eax, dword [eax + 0x60]
jmp 0x41db2d
mov dword [ebp + 0x4c], 0
jmp 0x41db30
mov al, 1
add esp, 0xc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov edx, ecx
mov eax, ebp
call fcn.004239c0
jmp 0x41db7a
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, ebx
mov eax, dword [ebp + 0x10]
call dword [ecx]
jmp 0x41dbeb
mov ecx, dword [ebp]
mov ecx, dword [ecx]
mov edx, 4
mov eax, dword [ebp + 0x10]
call dword [ecx]
jmp 0x41dc25
cmp edx, 0x1000000
ja 0x41dc42
test edx, edx
je 0x41ddef
lea edi, [edx - 4]
mov dword [eax + 0x10], edi
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x10]
test edx, edx
jbe 0x41dc4d
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x41dc4d
mov esi, dword [ebp + 0x14]
add ebx, esi
cmp ebx, ecx
jne 0x41de52
cmp dword [ebp + 0x48], 0
je 0x41de46
mov eax, ebp
call fcn.004239c0
mov edx, dword [esp + 4]
mov dword [edx + 0x24], eax
mov eax, dword [edx + 0x10]
add dword [ebp + 0x28], eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x24], 0
jne 0x41dc58
mov al, 1
add esp, 0xc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov ecx, dword [ebp]
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x10]
call dword [ecx]
jmp 0x41de1f
mov edx, dword [esp + 4]
mov eax, dword [ebp + 0x20]
add eax, dword [edx + 0x14]
sub eax, esi
add eax, 4
mov dword [edx + 0x24], eax
jmp 0x41de2c
cmp byte [eax + 0x18], 5
je 0x41dc77
jmp 0x41dc8b