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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4464d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40d7f1
cmp esi, 0xffffffff
je 0x40d7f1
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x40d803
push str.77CaJXykRKiJILOiWnDEXG1qJcow2kEt7q7XkjBnDeec70YZvUVS1CKg808sPQ
push edi
call fcn.0040c4d0
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
je 0x40d82e
push str.7GCeb7eO4CRUXf3XXprHZku6AUx7L2W_1KF0hylAO8ObvYaSEiarcZgyrm_jQ
push 0
call fcn.0040c4d0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40d846
push str.7GCeb7eO4CRUXf3XXprHZku6AUx7L2W_1KF0hac7wUYP8VXUmduv9SpDGR
jmp 0x40dcfb
movzx eax, word [ebx + 4]
mov ecx, 0x200
cmp ax, cx
je 0x40dcf6
mov ecx, 0x8664
cmp ax, cx
je 0x40dcf6
mov eax, 0x20b
cmp word [ebx + 0x18], ax
je 0x40dcf6
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40d889
push str.7GCeb7eO4CRUXf3XXprHZku6AU27euS60uOgCzKJ64fa_QoRzxFqQ
jmp 0x40dcfb
mov ecx, dword [ebx + 0x7c]
mov dword [ebp - 0x14], ecx
lea ecx, [esi + eax]
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x10], ecx
cmp eax, dword [ecx + 0x18]
jb 0x40dd05
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x1c]
add eax, esi
mov dword [ebp - 0x30], eax
add edx, esi
mov eax, dword [ecx + 0x24]
add eax, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x14]
shl eax, 2
push eax
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40dd05
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
shl eax, 2
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40dd05
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
add eax, eax
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40dd05
mov eax, dword [ebx + 0x50]
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov al, byte [esi + 0xff4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ecx
cmp al, 0x7a
jne 0x40d940
cmp byte [esi + 0xff5], 0x9c
jne 0x40d940
cmp byte [esi + 0xff6], 0x77
jne 0x40d940
cmp byte [esi + 0xff7], 0xb2
jne 0x40d940
mov dword [ebp - 0x28], 1
jmp 0x40d965
test al, al
jne 0x40d965
cmp byte [esi + 0xff5], cl
jne 0x40d965
cmp byte [esi + 0xff6], cl
jne 0x40d965
cmp byte [esi + 0xff7], cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
mov eax, edx
shr eax, 0x10
test eax, eax
jne 0x40daea
mov ebx, dword [ebp - 0x10]
sub edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x18], edx
cmp edx, ecx
jae 0x40dce3
cmp dword [ebp - 0x28], edi
je 0x40d9dc
mov ecx, dword [esi + 0xff8]
test ecx, ecx
je 0x40dce3
xor ecx, 0xafcd32b9
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x40d9e6
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jb 0x40dba4
add eax, dword [ebp - 0x14]
cmp ecx, eax
jae 0x40dba4
push ecx
push esi
call fcn.0040d1e0
add esp, 8
mov edi, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
test eax, eax
jne 0x40d9fb
xor edi, edi
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jae 0x40da2b
lea edi, [eax + esi]
mov eax, dword [ebp - 0x20]
add eax, esi
push eax
push dword [ebp - 0x24]
push ecx
push esi
call fcn.0040d050
add esp, 0x10
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
add edx, dword [ebp - 0x14]
cmp eax, edx
jb 0x40dbdb
mov edx, dword [ebp - 0x20]
cmp eax, edx
jae 0x40da64
lea edi, [eax + esi]
lea eax, [edx + esi]
push eax
push dword [ebp - 0x24]
push ecx
push esi
call fcn.0040d050
add esp, 0x10
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x18]
push str.5bhhS_FcakkKhT70QTzwroTgZsGdKoM0phNm_VRGWomsxkiE1DZ3gaMTXqUY3Y5v8rsXSNg5oys
push 0
call fcn.0040c4d0
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push dword [ebp - 0x2c]
push dword [ebx + 0x14]
push dword [ebp - 0x18]
push esi
call fcn.0040d400
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40dce3
mov edi, dword [ebp - 8]
test edi, edi
je 0x40dcb3
lea eax, [ebp - 8]
push eax
push 4
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40dca5
lea eax, [ebp - 8]
xor edi, 0xafcd32b9
push eax
push dword [ebp - 8]
mov dword [esi + 0xff8], edi
push 0x1000
push esi
mov dword [esi + 0xff4], 0xb2779c7a
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x40dcb3
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], edi
jne 0x40dafc
push str.3iO1AvJALNK5mPB6hZYqjyC8ICfYOWh7qoDmZPT2C0e3gTNphHOstB2O2QRV0l1MNrsOCPeQFyKrINV15k3xnQUvzO0q9U
jmp 0x40dcfb
mov ecx, dword [ecx + 0x18]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x40dce3
nop
mov ecx, dword [ebp - 0x34]
movzx ecx, word [ecx + eax*2]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ecx + eax*4]
add ebx, esi
cmp ebx, esi
jb 0x40db62
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
add ecx, esi
cmp ecx, ebx
jb 0x40db62
mov ecx, ebx
mov eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40db56
test dl, dl
je 0x40db52
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40db56
add eax, 2
add ecx, 2
test dl, dl
jne 0x40db36
xor eax, eax
jmp 0x40db5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40db7e
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x38]
jb 0x40db10
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], edi
je 0x40dbba
mov ecx, dword [esi + 0xff8]
test ecx, ecx
je 0x40dbba
mov eax, dword [ebp - 8]
xor ecx, 0xafcd32b9
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jae 0x40d9b4
lea edi, [esi + ecx]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*4]
cmp eax, ecx
jae 0x40dbd4
lea edi, [eax + esi]
mov eax, dword [ebp - 0x20]
add eax, esi
jmp 0x40dc05
add ecx, dword [ebp - 0x14]
cmp eax, ecx
jae 0x40dbf8
push eax
push esi
call fcn.0040d1e0
add esp, 8
mov edi, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jae 0x40dc29
lea edi, [eax + esi]
lea eax, [ecx + esi]
push eax
mov eax, dword [ebp - 0x10]
push edx
push dword [eax + 0x14]
push esi
call fcn.0040d050
add esp, 0x10
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
push eax
push ebx
push str.OpunpAiyZ25t2VpfN6wPIuKHfBGArcpbXdc434kXhTvHQCyip79RWIebNo7rfW5q1KgNXXHfb7U
push 4
call fcn.0040c4d0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [eax + 0x14]
push dword [ebp - 8]
push esi
call fcn.0040d400
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40dce3
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x40dcb3
lea eax, [ebp - 0xc]
push eax
push 4
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40dca5
lea eax, [ebp - 0xc]
xor edi, 0xafcd32b9
push eax
push dword [ebp - 0xc]
mov dword [esi + 0xff8], edi
push 0x1000
push esi
mov dword [esi + 0xff4], 0xb2779c7a
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x40dcb3
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x1c]
cmp ebx, ecx
jb 0x40dce0
mov eax, dword [ebp - 0x14]
add eax, ecx
cmp ebx, eax
jae 0x40dce0
push ebx
push esi
call fcn.0040d1e0
add esp, 8
mov edi, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
lea edi, [esi + ebx]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fae
mov esp, ebp
pop ebp
ret
push str.kLH0Gs1fxXd67njWJ141FvqyCe1oQdR6sQjH0MZcTFltK4G2WlqxQZSSLLaXV3vYGVdqWII1gwl4v3Ds1aOpi3mzmX39hCCyxkONdJAI5tYOgWlqlpIqePKQTb8
push 0
call fcn.0040c4d0
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00418fae
mov esp, ebp
pop ebp
ret