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

Disassembly:
push 0xffffffffffffffff
push 0x41a60c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
push edi
mov dword [esp + 0x4c], ecx
cmp byte [ebp], 0
je 0x40e1e2
mov al, byte [esp + 0x13]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.004019b0
mov edi, 0x41e230
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41e230
lea ecx, [esp + 0x20]
call fcn.0040a980
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd0], ebx
call fcn.004019b0
lea edx, [esp + 0x13]
lea ecx, [esp + 0x3c]
push edx
mov byte [esp + 0xd0], 1
call fcn.00411f40
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xcc], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x30]
call fcn.0040a980
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
mov cl, byte [esp + 0x17]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x54], cl
lea ecx, [esp + 0x54]
add ebp, 4
call fcn.004019b0
lea ecx, [esp + 0x68]
mov byte [esp + 0xcc], 3
call fcn.0040e230
mov eax, dword [esp + 0x38]
mov byte [esp + 0xcc], 4
cmp eax, ebx
mov dword [esp + 0x14], ebx
jbe 0x40e04d
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x58]
call fcn.0040a980
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
inc ebp
cmp eax, 8
mov dword [esp + 0x60], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
ja case.default.0x40df0b
jmp dword [eax*4 + 0x40e200]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x70]
call fcn.0040a980
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + ebp + 1]
jmp case.default.0x40df0b
mov dl, byte [ebp]
inc ebp
mov byte [esp + 0x78], dl
jmp case.default.0x40df0b
mov al, byte [ebp]
inc ebp
mov byte [esp + 0x78], al
jmp case.default.0x40df0b
mov cx, word [ebp]
add ebp, 2
mov word [esp + 0x78], cx
jmp case.default.0x40df0b
mov dx, word [ebp]
add ebp, 2
mov word [esp + 0x78], dx
jmp case.default.0x40df0b
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x78], eax
jmp case.default.0x40df0b
mov ecx, dword [ebp]
add ebp, 4
mov dword [esp + 0x78], ecx
jmp case.default.0x40df0b
mov edx, dword [ebp]
mov dword [esp + 0x78], edx
mov eax, dword [ebp + 4]
mov dword [esp + 0x7c], eax
jmp 0x40dfa1
mov ecx, dword [ebp]
mov dword [esp + 0x78], ecx
mov edx, dword [ebp + 4]
mov dword [esp + 0x7c], edx
add ebp, 8
mov edi, str.Index
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x58]
not ecx
dec ecx
push ecx
push str.Index
push eax
push ebx
lea ecx, [esp + 0x60]
call fcn.0040b260
cmp eax, ebx
jne 0x40e023
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0xb0]
push 0xa
push ecx
push edx
call fcn.00419d6c
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ebx
call fcn.00401a20
test al, al
je 0x40e021
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00401a00
xor ebx, ebx
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x50]
push ecx
push 1
push edx
lea ecx, [esp + 0x48]
call fcn.00412020
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40deca
lea eax, [esp + 0x28]
push 0x41e710
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.0040ad20
lea edx, [esp + 0x24]
mov byte [esp + 0xd8], 5
push edx
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0040d060
push 0x41e70c
lea ecx, [esp + 0x9c]
push eax
push ecx
mov byte [esp + 0xf0], 6
call fcn.0040ad20
add esp, 0x24
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0xd0], 9
call fcn.004019b0
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd0], 8
call fcn.004019b0
sub esp, 0x10
lea edx, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00402400
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x10]
add ecx, 4
call fcn.0040ab50
mov ecx, dword [0x41b16c]
mov esi, eax
push ecx
lea edx, [esp + 0x2c]
push ebx
push edx
mov ecx, esi
call fcn.0040a750
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], eax
call fcn.0040a4e0
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0xd0], 4
call fcn.004019b0
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], 0xa
call fcn.004019b0
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 2
call fcn.004019b0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xd4], 0xb
call fcn.0040a950
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00412670
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push 1
mov dword [esp + 0x4c], ebx
mov byte [esp + 0xd0], 0
call fcn.004019b0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xcc], 0xffffffff
cmp eax, ebx
je 0x40e1cb
mov cl, byte [eax - 1]
test cl, cl
je 0x40e1c1
cmp cl, 0xff
je 0x40e1c1
dec cl
mov byte [eax - 1], cl
jmp 0x40e1cb
dec eax
push eax
call fcn.00412670
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov al, byte [ebp]
test al, al
jne 0x40ddf4
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc0
ret 4