Function at 0x40de20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa0
cmp dword [ecx + 0x20], 0
je 0x40e2be
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0x9c]
push 0xa
push 4
push ecx
push eax
call fcn.0040e2d0
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.0040a940
add esp, 4
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x98], eax
lea eax, [ebp + 0x400]
push eax
call fcn.0040cb00
add esp, 4
mov edi, eax
mov dword [esp + 0x10], 0xebf782f0
mov byte [esp + 0x14], 0xc
mov dword [esp + 0x15], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40ded6
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.0040e860
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40deb0
lea eax, [esp + 0x10]
mov ecx, esi
push 0x454bfc
push eax
push edi
call fcn.0040d840
mov dword [esp + 0x10], 0xd97e6474
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40df36
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.0040e8e0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40df10
mov ecx, esi
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040d840
mov ebx, dword [str.CrQ5xX__system]
mov dword [esp + 0x10], 0x913a0400
mov byte [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40df96
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.0040e960
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40df70
mov ecx, esi
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040d840
mov dword [esp + 0x10], 0x6b7c6c7f
mov dword [esp + 0x14], 0x7467706f
mov dword [esp + 0x18], 0x627d6077
mov byte [esp + 0x1c], 4
mov word [esp + 0x1d], 0
mov byte [esp + 0x1f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40e006
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.0040ea60
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40dfe0
mov dword [esp + 0xc], 0xf96e5ea3
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x40e046
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0xc]
push dword [esp]
push eax
call fcn.0040e9f0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x40e020
lea eax, [esp + 0xc]
mov ecx, esi
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.0040d840
mov dword [esp + 0x10], 0x3e06383e
mov byte [esp + 0x14], 0x9c
mov dword [esp + 0x15], 0
mov byte [esp + 0x19], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40e0b6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.0040eae0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40e090
mov ecx, esi
push ebp
push dword [esp + 0x9c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040da90
mov ebx, dword [esi + 0x60]
mov dword [esp + 0x10], 0x93659153
mov dword [esp + 0x14], 0xaf22ad5a
mov dword [esp + 0x18], 0xab5ca955
mov dword [esp + 0x1c], 0xa793a528
mov dword [esp + 0x20], 0xa32ba14c
mov dword [esp + 0x24], 0xbf43bd4c
mov dword [esp + 0x28], 0xbb9ab972
mov dword [esp + 0x2c], 0xb73bb541
mov dword [esp + 0x30], 0xb33eb144
mov dword [esp + 0x34], 0x4fbe4db5
mov dword [esp + 0x38], 0x4bb849a9
mov dword [esp + 0x3c], 0x477145c8
mov dword [esp + 0x40], 0x43b541be
mov dword [esp + 0x44], 0x5fab5dae
mov dword [esp + 0x48], 0x5ba6596d
mov dword [esp + 0x4c], 0x57da55b5
mov dword [esp + 0x50], 0x539951b1
mov dword [esp + 0x54], 0x6f8c6d4c
mov dword [esp + 0x58], 0x6be7699f
mov dword [esp + 0x5c], 0x679a6592
mov dword [esp + 0x60], 0x63906181
mov dword [esp + 0x64], 0x7fbb7df5
mov dword [esp + 0x68], 0x7b87799a
mov dword [esp + 0x6c], 0x77bb75bc
mov dword [esp + 0x70], 0x738f718c
mov dword [esp + 0x74], 0xff70dc1
mov dword [esp + 0x78], 0xbf609f8
mov dword [esp + 0x7c], 0x7e505f3
mov dword [esp + 0x80], 0x3ff01f9
mov dword [esp + 0x84], 0x1fec1dee
mov dword [esp + 0x88], 0x1b2b19e5
mov dword [esp + 0x8c], 0x170c1501
mov word [esp + 0x90], 0x1110
mov byte [esp + 0x96], 0
mov dword [esp + 0x92], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x86
ja 0x40e238
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x10]
push dword [esp]
push eax
call fcn.0040ebc0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x87
jb 0x40e210
mov dword [esp], 0xc3a3c1ef
mov dword [esp + 4], 0xc7afc554
mov dword [esp + 8], 0xc9c8
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0xb
ja 0x40e289
mov eax, dword [esp + 0xc]
movzx eax, byte [esp + eax]
push dword [esp + 0xc]
push eax
call fcn.0040eb50
add esp, 8
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0xc
jb 0x40e260
mov eax, esp
push 0x493e0
push ebx
push edi
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00410e90
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040cb10
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40e2c0
mov bl, 1
mov eax, ebx
add esp, 0xa0
pop esi
pop edi
pop ebx
pop ebp
ret