Function at 0x40d8c0
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 0x40dda9
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa0]
push 0xa
push 4
push ecx
push eax
call fcn.0040ddc0
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.0040a320
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.0040c490
add esp, 4
mov edi, eax
mov dword [esp + 0x14], 0xb5a5b6a4
mov byte [esp + 0x18], 0x50
mov dword [esp + 0x19], 0
mov byte [esp + 0x1d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x40d97b
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.0040e2f0
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, 0xa
jb 0x40d950
lea eax, [esp + 0x14]
mov ecx, esi
push 0x454f70
push eax
push edi
call fcn.0040d2e0
mov dword [esp + 0x14], 0x11fa848c
mov word [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x40d9db
nop
nop
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e360
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, 6
jb 0x40d9b0
mov ecx, esi
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040d2e0
mov ebx, dword [str.hRjzG3__KASTA]
mov dword [esp + 0x14], 0xff1a1014
mov word [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x40da3b
nop
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 4]
push eax
call fcn.0040e3c0
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, 6
jb 0x40da10
mov ecx, esi
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040d2e0
mov dword [esp + 0x14], 0xebfcecff
mov dword [esp + 0x18], 0xf4e7f0ef
mov dword [esp + 0x1c], 0xe2fde0f7
mov byte [esp + 0x20], 4
mov dword [esp + 0x21], 0
mov word [esp + 0x25], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x12
ja 0x40dabb
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.0040e4c0
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, 0x13
jb 0x40da90
mov dword [esp + 4], 0xffaeee9
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40db06
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.0040e440
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40dae0
lea ebx, [esp + 4]
mov ecx, esi
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call fcn.0040d2e0
mov dword [esp + 0x14], 0xaea6a8ae
mov byte [esp + 0x18], 0x2c
mov dword [esp + 0x19], 0
mov byte [esp + 0x1d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x40db7b
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.0040e530
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, 0xa
jb 0x40db50
mov ecx, esi
push ebp
push dword [esp + 0xa0]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0040d510
mov ebp, dword [esi + 0x60]
mov dword [esp + 0x14], 0x43ad4183
mov dword [esp + 0x18], 0x47d245aa
mov dword [esp + 0x1c], 0x4ba449ad
mov dword [esp + 0x20], 0x4f634dd8
mov dword [esp + 0x24], 0x73eb7184
mov dword [esp + 0x28], 0x779375e4
mov dword [esp + 0x2c], 0x7b5a79a2
mov dword [esp + 0x30], 0x7feb7d91
mov dword [esp + 0x34], 0x63f6618c
mov dword [esp + 0x38], 0x67f6658d
mov dword [esp + 0x3c], 0x6bf86989
mov dword [esp + 0x40], 0x6f416df8
mov dword [esp + 0x44], 0x13fd11f6
mov dword [esp + 0x48], 0x17fb1586
mov dword [esp + 0x4c], 0x1bfe1935
mov dword [esp + 0x50], 0x1f8a1dfd
mov dword [esp + 0x54], 0x3d901e1
mov dword [esp + 0x58], 0x7e40524
mov dword [esp + 0x5c], 0xb9f09e7
mov dword [esp + 0x60], 0xfea0de2
mov dword [esp + 0x64], 0x33a031d1
mov dword [esp + 0x68], 0x37eb35ad
mov dword [esp + 0x6c], 0x3bdf39da
mov dword [esp + 0x70], 0x3feb3de4
mov dword [esp + 0x74], 0x23c721c4
mov dword [esp + 0x78], 0x27cf25f1
mov dword [esp + 0x7c], 0x2bce29b8
mov dword [esp + 0x80], 0x2fcd2dc3
mov dword [esp + 0x84], 0xd337d139
mov dword [esp + 0x88], 0xd744d546
mov dword [esp + 0x8c], 0xdb0bd93d
mov dword [esp + 0x90], 0xdfd4ddd1
mov word [esp + 0x94], 0xc1c0
mov byte [esp + 0x9a], 0
mov dword [esp + 0x96], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x86
ja 0x40dd0d
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.0040e630
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, 0x87
jb 0x40dce0
mov dword [esp + 4], 0x37d7390b
mov dword [esp + 8], 0x33cb35c4
mov word [esp + 0xc], 0x3130
mov dword [esp + 0xe], 0
mov word [esp + 0x12], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40dd76
nop
nop
nop
nop
nop
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.0040e590
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40dd50
push 0x493e0
push ebp
push edi
push 0
push 0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004105d0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.0040c4a0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x40ddab
mov bl, 1
mov eax, ebx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret