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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa4
cmp dword [ecx + 0x20], 0
je 0x40df19
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa0]
push 0xa
push 4
push ecx
push eax
call fcn.0040df30
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.0040a4b0
add esp, 4
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x9c], eax
lea eax, [ebp + 0x400]
push eax
call fcn.0040c610
add esp, 4
mov edi, eax
mov dword [esp + 0x14], 0x75657664
mov byte [esp + 0x18], 0xd0
mov dword [esp + 0x19], 0
mov word [esp + 0x1d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40db0b
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e480
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40dae0
lea eax, [esp + 0x14]
mov ecx, esi
push 0x454e70
push eax
push edi
call fcn.0040d450
mov dword [esp + 0x14], 0xd7baa0b8
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40db7b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e500
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40db50
mov ecx, esi
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040d450
mov ebx, dword [str.jMw1IE__YT]
mov dword [esp + 0x14], 0x13aea8a4
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40dbdb
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e560
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40dbb0
mov ecx, esi
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040d450
mov dword [esp + 0x14], 0xbbacbcaf
mov dword [esp + 0x18], 0xd4c7b0bf
mov dword [esp + 0x1c], 0xc2cdc0d7
mov byte [esp + 0x20], 0x64
mov dword [esp + 0x21], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x10
ja 0x40dc4b
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e660
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x11
jb 0x40dc20
mov dword [esp + 4], 0x61eafac7
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40dc96
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0040e5e0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40dc70
lea ebx, [esp + 4]
mov ecx, esi
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call fcn.0040d450
mov dword [esp + 0x14], 0xa6aea8a6
mov byte [esp + 0x18], 0x44
mov word [esp + 0x19], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40dd0b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e6d0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40dce0
mov ecx, esi
push ebp
push dword [esp + 0xa0]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0040d6a0
mov ebp, dword [esi + 0x60]
mov dword [esp + 0x14], 0x9fed99df
mov dword [esp + 0x18], 0xa3d69dee
mov dword [esp + 0x1c], 0xa7d4a1c5
mov dword [esp + 0x20], 0xab87a5d0
mov dword [esp + 0x24], 0xafd7a9fc
mov dword [esp + 0x28], 0xb3d7addc
mov dword [esp + 0x2c], 0xb796b18e
mov dword [esp + 0x30], 0xbbcfb5d9
mov dword [esp + 0x34], 0xbfcab9d4
mov dword [esp + 0x38], 0xc3b2bdd5
mov dword [esp + 0x3c], 0xc7b0c1a1
mov dword [esp + 0x40], 0xcbf9c5b0
mov dword [esp + 0x44], 0xcfbdc9a2
mov dword [esp + 0x48], 0xd3bfcdba
mov dword [esp + 0x4c], 0xd7b2d1fd
mov dword [esp + 0x50], 0xdbaed5b5
mov dword [esp + 0x54], 0xdfe1d9b9
mov dword [esp + 0x58], 0xe384ddfc
mov dword [esp + 0x5c], 0xe793e193
mov dword [esp + 0x60], 0xeb8ee596
mov dword [esp + 0x64], 0xef98e989
mov dword [esp + 0x68], 0xf3cfed95
mov dword [esp + 0x6c], 0xf793f196
mov dword [esp + 0x70], 0xfbcff5cc
mov dword [esp + 0x74], 0xff9bf99c
mov dword [esp + 0x78], 0x36bfdc9
mov dword [esp + 0x7c], 0x7620170
mov dword [esp + 0x80], 0xb6d0577
mov dword [esp + 0x84], 0xf6b0961
mov dword [esp + 0x88], 0x13640d7a
mov dword [esp + 0x8c], 0x17271175
mov dword [esp + 0x90], 0x1b141519
mov word [esp + 0x94], 0x1918
mov dword [esp + 0x96], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x85
ja 0x40de8d
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e7d0
add esp, 8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x86
jb 0x40de60
mov dword [esp + 4], 0xf1ad0fdd
mov dword [esp + 8], 0xf559f360
mov word [esp + 0xc], 0xf7f4
mov dword [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x40dee6
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0040e740
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x40dec0
push 0x493e0
push ebp
push edi
push 0
push 0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004108e0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040c620
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40df1b
mov bl, 1
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret