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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d0bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x340
mov eax, dword [0x45500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34c], esi
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x33c], edi
cmp eax, 0xffffffff
jne 0x41b3b7
mov ecx, dword [esi]
mov edx, edi
call fcn.00419c80
mov dword [esi + 8], eax
and eax, edx
mov dword [esi + 0xc], edx
cmp eax, 0xffffffff
je 0x41b68b
sub esp, 8
lea ecx, [ebp - 0x338]
mov eax, esp
push edi
push 0
mov dword [eax], ecx
mov ecx, esi
push 0
mov dword [eax + 4], 0x40
call fcn.0041b260
test al, al
je 0x41b68b
push 0xf8
lea edi, [esi + 0x24]
push 0
push edi
call fcn.00426850
mov eax, 0x5a4d
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
cmp word [ebp - 0x338], ax
jne 0x41b6ad
mov ecx, dword [ebp - 0x2fc]
lea edx, [ebp - 0x340]
sub esp, 8
mov dword [ebp - 0x344], ecx
mov eax, esp
push dword [ebp - 0x33c]
mov dword [eax], edx
push 0
push ecx
mov ecx, esi
mov dword [eax + 4], 4
call fcn.0041b260
test al, al
je 0x41b68b
mov eax, dword [ebp - 0x340]
mov cl, byte [ebp - 0x33d]
mov dl, byte [ebp - 0x33e]
cmp al, 0x50
jne 0x41b47c
cmp ah, 0x45
jne 0x41b47c
test dl, dl
jne 0x41b47c
test cl, cl
jne 0x41b47c
mov edx, dword [ebp - 0x344]
mov eax, 0
add edx, 4
adc eax, eax
jmp 0x41b6b3
push ecx
movzx eax, ah
movzx edi, cl
lea ecx, [ebp - 0x2f8]
movzx esi, dl
lea edx, [ebp - 0x2f0]
push eax
call fcn.004048d0
movzx eax, byte [ebp - 0x340]
lea edx, [ebp - 0x2a8]
add esp, 4
lea ecx, [ebp - 0x2b0]
push eax
call fcn.004048d0
mov ecx, dword [ebp - 0x2ac]
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0x2b0]
add esp, 4
mov dword [ebp - 0x1cc], ecx
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x1bc], ecx
lea ecx, [ebp - 0x220]
push esi
mov dword [ebp - 0x1d8], str.Invalid_PE_COFF_file_signature_of__
mov dword [ebp - 0x1d4], 0x24
mov dword [ebp - 0x1c8], 0x44e984
mov dword [ebp - 0x1c4], 3
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1b8], 0x44e984
mov dword [ebp - 0x1b4], 3
call fcn.004048d0
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x220]
add esp, 4
mov dword [ebp - 0x1ac], ecx
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1a8], 0x44e984
push edi
mov dword [ebp - 0x1a4], 3
call fcn.004048d0
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x190]
mov dword [ebp - 0x19c], ecx
lea ecx, [ebp - 0x1d8]
push eax
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x198], 0x44e97c
mov dword [ebp - 0x194], 2
call fcn.0041bf40
xor ecx, ecx
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 7
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x54], cx
add esp, 0x10
lea ecx, [ebp - 0x54]
cmp ecx, eax
je 0x41b601
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 0x4001
cmp ecx, 8
jb 0x41b642
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b638
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41be0a
push ecx
push edx
call fcn.00424cbf
add esp, 8
mov ecx, dword [ebp - 0x33c]
lea eax, [ebp - 0x54]
push eax
call fcn.00405e40
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x41b68b
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b681
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41be0f
push ecx
push edx
call fcn.00424cbf
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424cac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 8
mov dword [ebp - 0x348], eax
mov eax, esp
mov dword [ebp - 0x344], edx
lea ecx, [esi + 0x10]
push dword [ebp - 0x33c]
mov dword [eax], ecx
mov ecx, esi
push dword [ebp - 0x348]
mov dword [eax + 4], 0x14
push edx
call fcn.0041b260
test al, al
je 0x41b68b
mov ecx, dword [esi + 0x18]
mov eax, 0xf0
cmp word [esi + 0x20], ax
sete al
mov byte [esi + 0x118], al
test ecx, ecx
je 0x41b84c
mov eax, dword [esi + 0x1c]
xor edx, edx
lea eax, [eax + eax*8]
lea ecx, [ecx + eax*2]
lea eax, [ecx + 4]
mov dword [ebp - 0x20], ecx
cmp edx, dword [esi + 0xc]
jg 0x41b84c
jl 0x41b72a
cmp eax, dword [esi + 8]
jae 0x41b84c
sub esp, 8
mov dword [ebp - 0x340], edx
mov eax, esp
lea edx, [ebp - 0x340]
push dword [ebp - 0x33c]
mov dword [eax], edx
push 0
push ecx
mov ecx, esi
mov dword [eax + 4], 4
call fcn.0041b260
test al, al
je 0x41b68b
mov eax, dword [ebp - 0x340]
cmp eax, 4
jbe 0x41b84c
mov ecx, dword [ebp - 0x20]
xor edx, edx
add ecx, eax
cmp edx, dword [esi + 0xc]
jg 0x41b84c
jl 0x41b786
cmp ecx, dword [esi + 8]
ja 0x41b84c
sub eax, 4
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x340], eax
call fcn.00419ba0
push dword [ebp - 0x33c]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push dword [ebp - 0x340]
mov ecx, esi
push eax
call fcn.00419d40
test al, al
jne 0x41b82e
mov esi, dword [ebp - 0x33c]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x41b7ca
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov edx, 0x4001
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x268], ecx
push eax
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x220], str.fail_to_read_string_table:
mov dword [ebp - 0x21c], 0x1b
call fcn.0041b1d0
add esp, 8
mov ecx, esi
push eax
call fcn.00405e40
lea ecx, [ebp - 0x18c]
call fcn.00401090
lea ecx, [ebp - 0x2c]
call fcn.004021a0
jmp 0x41b68b
lea eax, [ebp - 0x2c]
lea ecx, [esi + 0x128]
push eax
call fcn.00422950
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004021a0
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp - 0x348]
add ecx, 0x14
adc edx, 0
sub esp, 8
cmp byte [esi + 0x118], 0
mov eax, esp
push dword [ebp - 0x33c]
push edx
push ecx
mov ecx, esi
je 0x41ba80
lea edi, [ebp - 0x170]
mov dword [eax + 4], 0xf0
mov dword [eax], edi
call fcn.0041b260
lea edi, [esi + 0x24]
test al, al
jne 0x41b8fb
mov esi, dword [ebp - 0x33c]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41b8a5
mov eax, dword [esi]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x38]
mov eax, dword [esi + 0x10]
mov edx, 0x4001
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], str.pe:_not_a_valid_pe_file
push eax
mov dword [ebp - 0x21c], 0x18
call fcn.0041b1d0
add esp, 8
mov ecx, esi
push eax
call fcn.00405e40
lea ecx, [ebp - 0x38]
call fcn.00401090
jmp 0x41b68b
movzx eax, word [ebp - 0x170]
lea esi, [ebp - 0x16c]
mov word [edi], ax
sub esi, edi
mov al, byte [ebp - 0x16e]
mov edx, 0x10
mov byte [edi + 2], al
mov al, byte [ebp - 0x16d]
mov byte [edi + 3], al
mov eax, dword [ebp - 0x16c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x168]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x164]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x160]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x15c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x158]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x150]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x14c]
mov dword [edi + 0x24], eax
movzx eax, word [ebp - 0x148]
mov word [edi + 0x28], ax
movzx eax, word [ebp - 0x146]
mov word [edi + 0x2a], ax
movzx eax, word [ebp - 0x144]
mov word [edi + 0x2c], ax
movzx eax, word [ebp - 0x142]
mov word [edi + 0x2e], ax
movzx eax, word [ebp - 0x140]
mov word [edi + 0x30], ax
movzx eax, word [ebp - 0x13e]
mov word [edi + 0x32], ax
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x154]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x138]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x134]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x130]
mov dword [edi + 0x40], eax
movzx eax, word [ebp - 0x12c]
mov word [edi + 0x44], ax
movzx eax, word [ebp - 0x12a]
mov word [edi + 0x46], ax
mov eax, dword [ebp - 0x128]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x120]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x110]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x124]
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x108]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x11c]
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x104]
mov dword [edi + 0x54], ecx
mov ecx, dword [ebp - 0x114]
mov dword [edi + 0x6c], eax
lea eax, [ebp - 0x170]
mov dword [edi + 0x5c], ecx
sub eax, edi
mov ecx, dword [ebp - 0x10c]
mov dword [edi + 0x64], ecx
lea ecx, [edi + 0x70]
mov edi, eax
nop dword [eax + eax]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 8]
mov dword [ecx - 4], eax
mov eax, dword [edi + ecx - 8]
mov dword [ecx - 8], eax
sub edx, 1
jne 0x41ba60
mov esi, dword [ebp - 0x34c]
jmp 0x41bc19
lea edi, [ebp - 0x160]
mov dword [eax + 4], 0xe0
mov dword [eax], edi
call fcn.0041b260
test al, al
je 0x41b895
movzx eax, word [ebp - 0x160]
lea edx, [esi + 0x94]
mov word [esi + 0x24], ax
xor ecx, ecx
mov al, byte [ebp - 0x15e]
mov byte [esi + 0x26], al
mov al, byte [ebp - 0x15d]
mov byte [esi + 0x27], al
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x158]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x154]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x150]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x14c]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x140]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x48], eax
movzx eax, word [ebp - 0x138]
mov word [esi + 0x4c], ax
movzx eax, word [ebp - 0x136]
mov word [esi + 0x4e], ax
movzx eax, word [ebp - 0x134]
mov word [esi + 0x50], ax
movzx eax, word [ebp - 0x132]
mov word [esi + 0x52], ax
movzx eax, word [ebp - 0x130]
mov word [esi + 0x54], ax
movzx eax, word [ebp - 0x12e]
mov word [esi + 0x56], ax
mov eax, dword [ebp - 0x12c]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x128]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x124]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x64], eax
movzx eax, word [ebp - 0x11c]
mov word [esi + 0x68], ax
movzx eax, word [ebp - 0x11a]
mov word [esi + 0x6a], ax
mov eax, dword [ebp - 0x118]
mov dword [esi + 0x6c], eax
mov eax, dword [ebp - 0x114]
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x110]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp - 0x10c]
mov dword [esi + 0x84], eax
mov eax, dword [ebp - 0x108]
mov dword [esi + 0x8c], eax
mov eax, dword [ebp - 0x104]
mov dword [esi + 0x40], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], eax
nop dword [eax]
mov eax, dword [ebp + ecx*8 - 0xfc]
lea edx, [edx + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + ecx*8 - 0x100]
inc ecx
mov dword [edx - 8], eax
cmp ecx, 0x10
jl 0x41bbf0
mov eax, dword [ebp - 0x148]
mov dword [esi + 0x114], eax
mov eax, dword [esi + 0x120]
lea edi, [esi + 0x11c]
movzx edx, word [esi + 0x12]
mov dword [ebp - 0x20], eax
sub eax, dword [edi]
sar eax, 2
imul ecx, eax, 0xf0f0f0f1
cmp edx, ecx
jae 0x41bc60
mov ecx, dword [edi]
mov eax, edx
shl eax, 4
add eax, edx
mov edx, dword [ebp - 0x20]
push ecx
lea edi, [ecx + eax*4]
mov ecx, edi
call fcn.00405160
mov dword [esi + 0x120], edi
lea edi, [esi + 0x11c]
jmp 0x41bc8c
jbe 0x41bc8f
mov eax, dword [edi + 8]
sub eax, dword [edi]
sar eax, 2
imul eax, eax, 0xf0f0f0f1
push ecx
cmp edx, eax
jbe 0x41bc7f
push edx
mov ecx, edi
call fcn.0041c050
jmp 0x41bc8f
sub edx, ecx
mov ecx, dword [edi + 4]
call fcn.0041c1f0
mov dword [edi + 4], eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x344], 0
cmp ax, word [esi + 0x12]
jae 0x41bdda
mov dword [ebp - 0x348], eax
nop dword [eax + eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x7c]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x33c]
mov dword [eax + 4], 0x28
call fcn.0041ab10
add esp, 8
test al, al
je 0x41b68b
mov edi, dword [edi]
lea eax, [ebp - 0x7c]
add edi, dword [ebp - 0x348]
mov ecx, esi
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00422e80
push eax
mov ecx, edi
call fcn.0041b150
mov ecx, dword [ebp - 0x174]
cmp ecx, 0x10
jb 0x41bd35
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bd2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41be0a
push ecx
push edx
call fcn.00424cbf
add esp, 8
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x70]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x6c]
mov dword [edi + 0x20], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x24], eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x2c], eax
movzx eax, word [ebp - 0x5c]
mov word [edi + 0x30], ax
movzx eax, word [ebp - 0x5a]
mov word [edi + 0x32], ax
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x34], eax
lea eax, [edx + ecx]
xor ecx, ecx
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0xf
mov byte [ebp - 0x188], 0
cmp ecx, dword [esi + 0x13c]
jl 0x41bdb3
jg 0x41bda7
cmp eax, dword [esi + 0x138]
jbe 0x41bdb3
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], ecx
mov edi, dword [ebp - 0x344]
movzx eax, word [esi + 0x12]
inc edi
add dword [ebp - 0x348], 0x44
mov dword [ebp - 0x344], edi
cmp edi, eax
jge 0x41bdda
lea edi, [esi + 0x11c]
jmp 0x41bcb0
mov ecx, dword [esi + 0x120]
mov edi, dword [esi + 0x11c]
mov dword [ebp - 0x34c], ecx
cmp edi, ecx
je 0x41be03
push edi
mov ecx, esi
call fcn.004230a0
add edi, 0x44
cmp edi, dword [ebp - 0x34c]
jne 0x41bdf0
mov al, 1
jmp 0x41b68d
call fcn.0042821f
call fcn.0042821f
int3