Function at 0x4149f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call fcn.00414150
mov esi, dword [esp + 0x28]
mov ebp, dword [fcn.0040d004]
push 4
push 0x1000
push esi
push 0
mov dword [esp + 0x2c], eax
call ebp
mov ecx, esi
mov esi, dword [esp + 0x24]
mov ebx, eax
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebx], 0x5a4d
jne 0x414a4e
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [esp + 0x28], eax
cmp dword [eax], 0x4550
jne 0x414a4e
cmp word [eax + 0x18], 0x10b
je 0x414a66
push 0x8000
push 0
push ebx
call dword [fcn.0040d000]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov esi, dword [eax + 0x50]
push 0x40
push 0x1000
push esi
push 0
call ebp
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0x28]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor edx, edx
and ecx, 3
mov dword [esp + 0x18], ebp
rep stosb byte es:[edi], al
xor eax, eax
mov ax, word [esi + 6]
test eax, eax
jle 0x414ab5
add esi, 0x10c
mov ecx, dword [esi]
test ecx, ecx
jne 0x414ad5
inc edx
add esi, 0x28
cmp edx, eax
jl 0x414aa5
jmp 0x414abd
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x414ad5
push 0x8000
push 0
push ebp
call dword [fcn.0040d000]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, ecx
mov esi, ebx
mov edi, ebp
mov edx, dword [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x24], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [edx + 6], 0
jbe 0x414b4b
lea eax, [edx + 0x108]
mov esi, dword [esp + 0x28]
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
mov edi, dword [esi + 0x50]
add ecx, edx
cmp ecx, edi
ja 0x414abd
mov ecx, dword [eax]
test ecx, ecx
je 0x414b2f
mov esi, dword [eax + 4]
lea edi, [edx + ebp]
mov edx, ecx
add esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor edx, edx
inc ecx
mov dx, word [esi + 6]
add eax, 0x28
cmp ecx, edx
mov dword [esp + 0x24], ecx
jl 0x414b00
mov edx, esi
mov edi, dword [edx + 0xa0]
mov eax, dword [edx + 0x34]
mov esi, ebp
add edi, ebp
sub esi, eax
mov eax, dword [edi]
test eax, eax
je 0x414bc9
lea ecx, [eax + ebp]
mov eax, dword [edi + 4]
sub eax, 8
lea edx, [edi + 8]
shr eax, 1
test eax, eax
jle 0x414bbc
mov ebx, edx
mov dword [esp + 0x24], eax
xor eax, eax
mov ax, word [ebx]
mov edx, eax
shr edx, 0xc
dec edx
je 0x414ba0
dec edx
je 0x414b95
dec edx
jne 0x414bae
and eax, 0xfff
add dword [eax + ecx], esi
jmp 0x414bae
and eax, 0xfff
add word [eax + ecx], si
jmp 0x414bae
mov edx, esi
and eax, 0xfff
shr edx, 0x10
add word [eax + ecx], dx
mov eax, dword [esp + 0x24]
add ebx, 2
dec eax
mov dword [esp + 0x24], eax
jne 0x414b78
add edi, dword [edi + 4]
mov eax, dword [edi]
test eax, eax
jne 0x414b60
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x80]
xor esi, esi
add eax, ebp
mov dword [esp + 0x14], esi
mov edi, dword [eax + 0xc]
lea ecx, [eax + 0xc]
test edi, edi
je 0x414bf0
mov edi, dword [ecx + 0x14]
add ecx, 0x14
inc esi
test edi, edi
jne 0x414be1
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x24], 0
jle 0x414c83
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 4]
add eax, ebp
push eax
call dword [0x40d02c]
mov edi, eax
test edi, edi
je 0x414acb
mov eax, dword [esi]
lea ecx, [eax + ebp]
mov eax, dword [esi - 0x10]
test eax, eax
je 0x414c2d
add eax, ebp
jmp 0x414c2f
mov eax, ecx
mov edx, dword [eax]
mov ebx, eax
test edx, edx
je 0x414c67
mov esi, ecx
mov eax, dword [ebx]
test eax, 0x80000000
je 0x414c4a
and eax, 0xffff
push eax
jmp 0x414c4f
lea ecx, [eax + ebp + 2]
push ecx
push edi
call dword [0x40d028]
add ebx, 4
mov dword [esi], eax
add esi, 4
cmp dword [ebx], 0
jne 0x414c39
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
inc eax
add esi, 0x14
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
jl 0x414c07
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x7c]
test eax, eax
je 0x414cf5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + eax]
mov eax, dword [edx + 0x78]
add eax, ebp
mov esi, edi
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
add eax, ebp
lea ebx, [ecx + ecx*4]
shl ebx, 1
sub esi, ebx
test ecx, ecx
jle 0x414ccd
mov edx, esi
sub eax, esi
mov ebx, ecx
mov ebp, dword [eax + edx]
add edx, 4
add ebp, dword [esp + 0x18]
dec ebx
mov dword [edx - 4], ebp
jne 0x414cb5
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
lea eax, [ecx + ecx*2]
shl eax, 1
sub edi, eax
test ecx, ecx
jle 0x414cf5
mov edx, esi
lea eax, [edi + 2]
mov bl, 0x25
mov byte [eax - 2], 0xff
mov byte [eax - 1], bl
mov dword [eax], edx
add edx, 4
add eax, 6
dec ecx
jne 0x414cdf
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc4]
test eax, eax
je 0x414da1
mov ecx, dword [edx + 0xc0]
xor esi, esi
mov eax, dword [ecx + ebp + 0xc]
mov dword [esp + 0x24], eax
cmp dword [eax], 0
je 0x414d23
mov ecx, dword [eax + 4]
add eax, 4
inc esi
test ecx, ecx
jne 0x414d18
lea ebx, [esi*4 + 4]
push 4
push 0x1000
push ebx
push 0
call dword [fcn.0040d004]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0x41b008], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
test esi, esi
jle 0x414d71
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, esi
mov edx, dword [ecx + eax*4 - 4]
mov ecx, dword [0x41b008]
mov dword [ecx + eax*4 - 4], edx
jl 0x414d5a
mov eax, dword [0x41aff8]
mov dword [0x41aff4], 1
test eax, eax
je 0x414d9d
mov edx, dword [0x41b004]
mov eax, dword [0x41b000]
mov ecx, dword [0x41affc]
push edx
push eax
push ecx
call fcn.00414090
mov edx, dword [esp + 0x28]
mov edx, dword [edx + 0x28]
pop edi
add edx, ebp
pop esi
pop ebp
mov dword [0x41b010], edx
mov eax, 1
pop ebx
add esp, 0x10
ret