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

Disassembly:
sub esp, 0xa4
push ebx
mov ebx, dword [esp + 0xb8]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0xc8]
mov ebp, ecx
mov ecx, dword [eax + edi*4]
lea eax, [edx + ecx*8]
xor esi, esi
lea ecx, [esp + 0x38]
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0xac], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.00410890
cmp dword [esp + 0x3c], 0x20
mov edx, dword [ebx + 0x34]
movzx eax, byte [edx + edi]
mov dword [esp + 0x50], eax
ja 0x40cf61
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
lea esi, [esp + 0x58]
lea edi, [esp + 0x38]
call fcn.0040c970
mov ecx, esi
call fcn.00412bc0
test al, al
jne 0x40cf7c
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x90]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x88]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x74]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x6c]
push eax
call fcn.0041a71a
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0040cbf0
pop edi
pop esi
pop ebp
mov eax, 0x80004001
pop ebx
add esp, 0xa4
ret 0x34
mov ecx, dword [esp + 0xc8]
mov edx, dword [ebx + 0x34]
movzx eax, byte [edx + ecx]
mov edx, dword [ebx + 0x2c]
add eax, dword [edx + ecx*4]
mov ecx, dword [ebx + 0x28]
mov esi, dword [esp + 0xcc]
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov byte [esp + 0x17], 1
test esi, esi
je 0x40cfef
mov ecx, dword [esi]
mov esi, dword [esi + 4]
cmp esi, eax
jb 0x40cfdd
ja 0x40cfb9
cmp ecx, edx
jbe 0x40cfdf
lea ecx, [esp + 0x58]
call fcn.0040c660
lea ecx, [esp + 0x38]
call fcn.0040cbf0
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0xa4
ret 0x34
cmp ecx, edx
jne 0x40cfea
mov byte [esp + 0x17], 1
cmp esi, eax
je 0x40cfef
mov byte [esp + 0x17], 0
cmp byte [ebp], 0
je 0x40d00d
lea eax, [ebp + 4]
push eax
lea ebx, [esp + 0x5c]
call fcn.0040c590
add esp, 4
test al, al
jne 0x40d16c
mov eax, dword [ebp + 0x5c]
xor ebx, ebx
cmp eax, ebx
je 0x40d021
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 0x5c], ebx
push 0x84
call fcn.0041a79e
add esp, 4
cmp eax, ebx
je 0x40d03e
push ebx
mov ecx, eax
call fcn.0040cce0
mov esi, eax
jmp 0x40d040
xor esi, esi
mov dword [ebp + 0x54], esi
cmp esi, ebx
je 0x40d04f
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
je 0x40d05e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp + 0x5c], esi
mov eax, dword [ebp + 0x54]
cmp eax, ebx
je 0x40d06d
lea ecx, [eax + 4]
jmp 0x40d06f
xor ecx, ecx
mov dword [ebp + 0x58], ecx
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x58]
push eax
call edx
mov esi, eax
cmp esi, ebx
jne 0x40d6a8
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x3c], ebx
jbe 0x40d15b
mov esi, dword [esp + 0x38]
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov edx, dword [esi + ebx + 4]
push eax
mov eax, dword [esi + ebx]
push edx
push eax
call fcn.00413e10
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40d48e
mov esi, dword [esi + ebx + 0x10]
cmp esi, 1
jne 0x40d100
cmp dword [esp + 0x24], eax
jne 0x40d116
lea ecx, [esp + 0x24]
call fcn.0040c750
lea ecx, [esp + 0x58]
call fcn.0040c660
lea ecx, [esp + 0x38]
call fcn.0040cbf0
pop edi
pop esi
pop ebp
mov eax, 0x80004001
pop ebx
add esp, 0xa4
ret 0x34
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40d4db
cmp dword [esp + 0x30], esi
jne 0x40d4cf
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x24]
push eax
call edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40d135
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40d145
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
inc eax
add ebx, 0x18
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x3c]
jb 0x40d095
lea eax, [esp + 0x58]
push eax
lea ecx, [ebp + 4]
call fcn.0040c780
mov byte [ebp], 1
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov edx, dword [esp + 0xc4]
mov eax, dword [edx + 0x2c]
mov edx, dword [esp + 0xc8]
mov eax, dword [eax + edx*4]
xor ecx, ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x3c], ecx
jbe 0x40d73c
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xb0], eax
lea esp, [esp]
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
call eax
mov ecx, dword [eax]
mov ebp, ecx
test ecx, ecx
jne 0x40d1e6
mov ebp, dword [eax + 4]
mov ecx, dword [ebp]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x423de4
xor edi, edi
push ebp
mov dword [esp + 0x1c], edi
call eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d249
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
cmp edx, 0xffffffff
ja 0x40d640
mov ecx, dword [ecx + 8]
mov esi, dword [eax]
push edx
push ecx
mov ecx, dword [esi + 0xc]
push eax
call ecx
mov esi, eax
cmp esi, 0x80070057
je 0x40d5cb
cmp esi, edi
jne 0x40d5d0
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d249
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x423e74
push ebp
mov dword [esp + 0x1c], edi
call eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d336
mov ecx, dword [esp + 0xe0]
mov byte [ecx], 1
mov ecx, dword [esp + 0xdc]
xor edi, edi
cmp ecx, edi
je 0x40d640
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x3c], edi
call ecx
mov esi, eax
cmp esi, edi
jne 0x40d68d
mov edx, dword [esp + 0xe4]
mov esi, dword [esp + 0xe8]
mov byte [edx], 1
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], edi
mov word [eax], cx
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x40d2cf
push eax
mov ecx, esi
call fcn.00415f20
mov edi, dword [esi + 4]
lea ebx, [edi + edi]
push ebx
call fcn.0041a79e
mov esi, eax
add esp, 4
xor eax, eax
test edi, edi
je 0x40d2fa
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + eax*2]
mov byte [esi + eax*2], cl
shr ecx, 8
mov byte [esi + eax*2 + 1], cl
inc eax
cmp eax, edi
jb 0x40d2e3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push ebx
push esi
push eax
call edx
push esi
mov edi, eax
call fcn.0041a71a
mov eax, dword [esp + 0x38]
add esp, 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x40d6c9
test eax, eax
je 0x40d336
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x423df4
push ebp
mov dword [esp + 0x1c], 0
call edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d384
mov ecx, dword [eax]
xor edx, edx
cmp byte [esp + 0x17], dl
setne dl
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x40d735
test eax, eax
je 0x40d384
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0x10]
xor ebp, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebp
test esi, esi
je 0x40d3ba
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a79e
add esp, 4
mov ebp, eax
mov dword [esp + 0x10], eax
xor edi, edi
test esi, esi
je 0x40d3dd
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a79e
add esp, 4
mov edi, eax
xor edx, edx
test esi, esi
je 0x40d560
mov ebx, ebp
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x44]
xor eax, eax
test esi, esi
je 0x40d40e
mov ecx, dword [esp + 0x40]
mov edi, edi
cmp dword [ecx + eax*8], ebp
je 0x40d4f4
inc eax
cmp eax, esi
jb 0x40d400
mov ecx, dword [esp + 0x4c]
xor eax, eax
test ecx, ecx
je 0x40d42e
mov esi, dword [esp + 0x48]
lea esp, [esp]
cmp dword [esi + eax*4], ebp
je 0x40d519
inc eax
cmp eax, ecx
jb 0x40d420
push edi
call fcn.0041a71a
mov eax, dword [esp + 0x14]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x98]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x90]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x7c]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x74]
push eax
call fcn.0041a71a
add esp, 0x20
jmp 0x40cf61
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40d49e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40d4ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x58]
call fcn.0040c660
lea ecx, [esp + 0x38]
call fcn.0040cbf0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x34
test eax, eax
je 0x40d4db
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40d0dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40d0dc
test eax, eax
js 0x40d40e
mov eax, dword [ecx + eax*8 + 4]
mov ecx, dword [esp + 0xc4]
add eax, dword [esp + 0xac]
mov ecx, dword [ecx + 0x28]
lea eax, [ecx + eax*8]
mov dword [edi + edx*4], eax
jmp 0x40d546
test eax, eax
js 0x40d42e
mov ecx, dword [esp + 0xa4]
mov esi, dword [ecx + eax*8 + 8]
sub esi, dword [ecx + eax*8]
mov ebp, dword [ecx + eax*8 + 0xc]
sbb ebp, dword [ecx + eax*8 + 4]
mov dword [ebx], esi
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0xa8]
mov dword [edi + edx*4], ebx
inc edx
inc ebp
add ebx, 8
mov dword [esp + 0xa8], ebp
cmp edx, dword [esp + 0x20]
jb 0x40d3f0
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0xcc]
mov esi, dword [esp + 0x1c]
test eax, eax
je 0x40d575
cmp esi, dword [esp + 0x7c]
je 0x40d586
mov ecx, dword [esp + 0xc4]
mov eax, dword [ecx + 0x28]
add eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x58]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x14]
push esi
call eax
push edi
call fcn.0041a71a
push ebp
call fcn.0041a71a
add dword [esp + 0xb8], 8
add dword [esp + 0x20], 0x18
inc esi
add esp, 8
mov dword [esp + 0x1c], esi
cmp esi, dword [esp + 0x3c]
jae 0x40d73c
mov ebp, dword [esp + 0x54]
jmp 0x40d1c0
mov esi, 0x80004001
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d5e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x98]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x88]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x7c]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x6c]
push edx
call fcn.0041a71a
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0040cbf0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x34
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x98]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x88]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x7c]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x6c]
push edx
jmp 0x40cf59
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40d6a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x58]
call fcn.0040c660
lea ecx, [esp + 0x38]
call fcn.0040cbf0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x34
test eax, eax
je 0x40d6d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x98]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x88]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x7c]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x6c]
push edx
call fcn.0041a71a
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0040cbf0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x34
test eax, eax
jmp 0x40d5d6
xor ebx, ebx
cmp dword [esp + 0xd0], ebx
je 0x40d760
cmp byte [esp + 0x17], bl
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
sete al
movzx eax, al
push eax
call edx
xor edi, edi
push 0x30
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
call fcn.0041a79e
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40d866
mov dword [esi + 4], ebx
lea eax, [esi + 0x18]
mov dword [esi], 0x423e94
push eax
mov dword [esi + 8], ebx
call fcn.00408fc0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
add esp, 4
push esi
mov ebp, esi
mov dword [esp + 0x20], esi
call edx
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0xb8]
cmp eax, 1
jbe 0x40d891
mov eax, dword [esp + 0xa4]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
lea edx, [ebp + 0x10]
push edx
mov edx, dword [eax]
add edx, dword [esp + 0xc0]
mov eax, dword [eax + 4]
adc eax, dword [esp + 0xc4]
push 0
push eax
push edx
push esi
call ecx
mov ebx, eax
test ebx, ebx
je 0x40d871
test ebp, ebp
je 0x40d7fd
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
lea ecx, [esp + 0x24]
call fcn.0040c830
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x90]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x88]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x74]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x6c]
push eax
call fcn.0041a71a
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.0040cbf0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa4
ret 0x34
xor ebp, ebp
mov dword [esp + 0x1c], ebp
jmp 0x40d7a8
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d888
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], esi
mov eax, dword [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x40da8a
lea ecx, [ecx]
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x18]
mov edi, dword [edx + ecx*8]
add edi, dword [esp + 0xbc]
mov ebx, dword [edx + ecx*8 + 4]
adc ebx, dword [esp + 0xc0]
cmp eax, 1
jne 0x40d8f2
mov esi, dword [esp + 0xb8]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
push 0
push 0
push ebx
push edi
push esi
call ecx
mov ebx, eax
test ebx, ebx
jne 0x40dc5f
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x20], esi
jmp 0x40d948
push 0x20
call fcn.0041a79e
xor esi, esi
add esp, 4
cmp eax, esi
je 0x40d918
mov dword [eax + 4], esi
mov dword [eax], 0x423ea0
mov dword [eax + 0x18], esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov esi, eax
call edx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
test ebp, ebp
je 0x40d92d
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40d93c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0x18], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
push 0x28
call fcn.0041a79e
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40d968
mov dword [eax + 4], edi
mov dword [eax], 0x423eb0
mov dword [eax + 8], edi
mov esi, eax
jmp 0x40d96a
xor esi, esi
push 4
call fcn.0041a79e
add esp, 4
cmp eax, edi
je 0x40d97e
mov dword [eax], edi
mov ebp, eax
jmp 0x40d980
xor ebp, ebp
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
jne 0x40d9ea
mov eax, dword [esp + 0x2c]
mov edx, eax
shr edx, 2
lea edi, [edx + eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a79e
add esp, 4
cmp dword [esp + 0x28], 0
mov ebx, eax
je 0x40d9d5
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
push edx
push ebx
call fcn.0041ad60
add esp, 0xc
mov eax, dword [esp + 0x24]
push eax
call fcn.0041a71a
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [ecx + eax*4], ebp
inc eax
mov dword [esp + 0x28], eax
test esi, esi
je 0x40da06
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp]
test eax, eax
je 0x40da15
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x20]
mov dword [ebp], esi
test ebx, ebx
je 0x40da28
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40da37
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0xa4]
mov edi, dword [esp + 0x18]
mov dword [esi + 8], ebx
mov ecx, dword [eax + edi*8 + 8]
sub ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 0xc]
sbb edx, dword [eax + edi*8 + 4]
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
cmp ebx, eax
je 0x40da71
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, dword [esp + 0x4c]
inc edi
mov dword [esp + 0x18], edi
cmp edi, eax
jb 0x40d8a0
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
xor ebx, ebx
test edi, edi
je 0x40dacd
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a79e
add esp, 4
mov ebx, eax
test edi, edi
je 0x40dacd
mov ecx, dword [esp + 0x24]
sub ecx, ebx
mov edx, edi
lea esp, [esp]
mov esi, dword [ecx + eax]
mov esi, dword [esi]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x40dac0
cmp dword [esp + 0xd0], 0
je 0x40dd21
mov edi, dword [esp + 0xd4]
xor esi, esi
test edi, edi
je 0x40db30
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx + 0x60]
push edx
call fcn.00412da0
test al, al
jne 0x40db30
push 0xc
call fcn.0041a79e
mov esi, eax
add esp, 4
test esi, esi
je 0x40dd1a
mov dword [esi + 4], 0
mov dword [esi], 0x423ee8
mov dword [esi + 8], edi
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0xac], ecx
mov eax, esi
test esi, esi
jne 0x40db46
mov eax, edi
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push eax
lea eax, [esp + 0xb0]
push eax
push ebx
call edx
mov dword [esp + 0x20], eax
test esi, esi
je 0x40db6e
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
push ebx
call fcn.0041a71a
add esp, 4
test ebp, ebp
je 0x40db84
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x40dbb4
mov esi, dword [ebx + edi*4 - 4]
dec edi
test esi, esi
je 0x40dbb0
mov eax, dword [esi]
test eax, eax
je 0x40dba7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call fcn.0041a71a
add esp, 4
test edi, edi
jne 0x40db90
push ebx
call fcn.0041a71a
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x8c]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x80]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x70]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x64]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041a71a
mov eax, dword [esp + 0x5c]
add esp, 0x24
test eax, eax
je 0x40dc4e
mov esi, dword [eax - 4]
lea ebx, [eax - 4]
lea edx, [esi + esi*2]
dec esi
lea eax, [eax + edx*8]
js 0x40dc45
lea edi, [eax + 8]
mov eax, dword [edi - 0x18]
sub edi, 0x18
push eax
call fcn.0041a71a
add esp, 4
dec esi
jns 0x40dc33
push ebx
call fcn.0041a71a
add esp, 4
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x34
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40dc6f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x24]
call fcn.0040c830
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x90]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x88]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x74]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x6c]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x58]
add esp, 0x20
test eax, eax
je 0x40dd0b
mov esi, dword [eax - 4]
lea ebp, [eax - 4]
lea ecx, [esi + esi*2]
dec esi
lea eax, [eax + ecx*8]
js 0x40dd02
lea edi, [eax + 8]
mov edi, edi
mov edx, dword [edi - 0x18]
sub edi, 0x18
push edx
call fcn.0041a71a
add esp, 4
dec esi
jns 0x40dcf0
push ebp
call fcn.0041a71a
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa4
ret 0x34
xor esi, esi
jmp 0x40db30
push ebx
call fcn.0041a71a
add esp, 4
test ebp, ebp
je 0x40dd37
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x40dd67
mov esi, dword [ebx + edi*4 - 4]
dec edi
test esi, esi
je 0x40dd63
mov eax, dword [esi]
test eax, eax
je 0x40dd5a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call fcn.0041a71a
add esp, 4
test edi, edi
jne 0x40dd43
push ebx
call fcn.0041a71a
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x8c]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x80]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0041a71a
mov edx, dword [esp + 0x70]
push edx
call fcn.0041a71a
mov eax, dword [esp + 0x64]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041a71a
mov eax, dword [esp + 0x5c]
add esp, 0x24
test eax, eax
je 0x40de01
mov esi, dword [eax - 4]
lea ebx, [eax - 4]
lea edx, [esi + esi*2]
dec esi
lea eax, [eax + edx*8]
js 0x40ddf8
lea edi, [eax + 8]
mov eax, dword [edi - 0x18]
sub edi, 0x18
push eax
call fcn.0041a71a
add esp, 4
dec esi
jns 0x40dde6
push ebx
call fcn.0041a71a
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0xa4
ret 0x34