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

Disassembly:
push 0xffffffffffffffff
push 0xe15a22
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0xe816ec]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x24
mov dword [esp + 0x5c], ebx
call fcn.00da8a50
add esp, 4
cmp eax, ebx
je 0xcad534
mov dword [esp + 0x54], eax
mov dword [eax], eax
mov eax, dword [esp + 0x54]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x54]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x54]
mov byte [eax + 0x20], 1
mov ecx, dword [esp + 0x54]
mov byte [ecx + 0x21], 1
mov dword [esp + 0x6c], 1
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x6c], 2
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x34], esi
cmp eax, esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
je 0xcad3b1
jmp 0xcad204
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x15], 0
mov dword [esp + 0x18], edx
jne 0xcad22a
cmp dword [eax + 0xc], edx
jae 0xcad220
mov eax, dword [eax + 8]
jmp 0xcad224
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x15], 0
je 0xcad216
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ebx
cmp ecx, eax
je 0xcad247
cmp edx, dword [ecx + 0xc]
jb 0xcad247
lea eax, [esp + 0x20]
jmp 0xcad24f
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov eax, dword [eax]
cmp eax, dword [esi + 0x20]
je 0xcad25b
mov edi, dword [eax + 0x10]
jmp 0xcad25d
xor edi, edi
mov dword [esp + 0x20], edi
cmp edi, dword [esp + 0x78]
je 0xcad396
cmp byte [esp + 0x7c], 0
jne 0xcad27c
test edi, edi
jne 0xcad396
jmp 0xcad2ab
test edi, edi
je 0xcad2ab
lea ecx, [esi + 0xc]
lea ebx, [esp + 0x28]
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], edi
call fcn.00cae230
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x10]
je 0xcad2a7
cmp dword [ecx + 0x10], 5
je 0xcad396
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x18]
mov esi, ebx
call fcn.00caacc0
mov edx, dword [esp + 0x78]
mov dword [eax], edx
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x18]
cmp eax, ebp
jae 0xcad2fc
mov ecx, eax
mov eax, dword [esp + 0x40]
cmp eax, ecx
ja 0xcad2fc
mov esi, ecx
sub esi, eax
sar esi, 2
cmp ebp, dword [esp + 0x48]
jne 0xcad2f0
lea eax, [esp + 0x40]
call fcn.00d1e360
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
test ebp, ebp
je 0xcad31e
mov edx, dword [eax + esi*4]
mov dword [ebp], edx
jmp 0xcad31a
cmp ebp, dword [esp + 0x48]
jne 0xcad30f
lea eax, [esp + 0x40]
call fcn.00d1e360
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0xcad31e
mov eax, dword [esp + 0x18]
mov dword [ebp], eax
mov ebp, dword [esp + 0x44]
add ebp, 4
mov dword [esp + 0x44], ebp
test edi, edi
je 0xcad392
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x24]
call fcn.00cae290
mov ebp, eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x18]
cmp edx, eax
jae 0xcad371
mov ecx, dword [ebp]
cmp ecx, edx
ja 0xcad371
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [ebp + 8]
jne 0xcad35e
mov eax, ebp
call fcn.00d1e360
mov eax, dword [ebp]
lea ecx, [eax + esi*4]
mov eax, dword [ebp + 4]
test eax, eax
je 0xcad38a
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0xcad38a
cmp eax, dword [ebp + 8]
jne 0xcad37d
mov eax, ebp
call fcn.00d1e360
mov eax, dword [ebp + 4]
test eax, eax
je 0xcad38a
mov edx, dword [esp + 0x18]
mov dword [eax], edx
add dword [ebp + 4], 4
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x34]
jne 0xcad200
mov ecx, dword [esp + 0x40]
xor ebx, ebx
sub ebp, ecx
test ebp, 0xfffffffc
je 0xcad4cb
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x7c]
push edx
push esi
call eax
mov eax, dword [esp + 0x54]
mov esi, dword [eax]
mov dword [esp + 0x34], eax
cmp esi, eax
je 0xcad4b3
mov edi, dword [esp + 0x74]
mov ebp, dword [esi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esi + 0x10]
push eax
push ebp
push edi
call edx
push ebp
call fcn.00cac220
test al, al
je 0xcad460
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x41], 0
jne 0xcad426
cmp dword [eax + 0xc], ebp
jae 0xcad41c
mov eax, dword [eax + 8]
jmp 0xcad420
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x41], 0
je 0xcad412
mov eax, dword [edi + 0x10]
mov dword [esp + 0x7c], ecx
cmp ecx, eax
je 0xcad43c
cmp ebp, dword [ecx + 0xc]
jb 0xcad43c
lea eax, [esp + 0x7c]
jmp 0xcad444
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov eax, dword [eax]
cmp eax, dword [edi + 0x10]
je 0xcad451
cmp byte [eax + 0x14], 0
jne 0xcad460
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edx
push edi
call eax
cmp byte [esi + 0x21], 0
jne 0xcad4a7
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], 0
jne 0xcad48c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
jne 0xcad4a7
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
je 0xcad480
jmp 0xcad4a7
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], 0
jne 0xcad4a5
cmp esi, dword [eax + 8]
jne 0xcad4a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0xcad495
mov esi, eax
cmp esi, dword [esp + 0x34]
jne 0xcad3e5
jmp 0xcad4b7
mov edi, dword [esp + 0x74]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x40]
push eax
push edi
call edx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x6c], 1
cmp ecx, ebx
je 0xcad4dd
push ecx
call fcn.00da8a36
add esp, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x6c], 3
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x58]
call fcn.00cae620
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x54]
push eax
call fcn.00da8a36
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], ebx
call fcn.00c64df0
int3