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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [ebp + 0x44]
push ebx
mov ebx, dword [ebp + 0x2c]
test ebx, ebx
push esi
push edi
mov dword [esp + 0x30], ecx
mov dword [eax], 0
je 0xc4d297
cmp ebx, 2
je 0xc4d297
cmp ebx, 1
je 0xc4d297
cmp ebx, 3
je 0xc4d297
cmp ebx, 4
je 0xc4d297
cmp ebx, 5
je 0xc4d297
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
mov dword [edx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x30]
push edi
push eax
call fcn.00c5dec0
add esp, 8
test eax, eax
je 0xc4d27c
mov eax, dword [ebp + 0x30]
mov esi, eax
and esi, 1
mov dword [esp + 0x1c], esi
je 0xc4d2e2
test ebx, ebx
je 0xc4d2c7
cmp ebx, 4
je 0xc4d2c7
cmp ebx, 5
jne 0xc4d2e2
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], 0
mov dword [ecx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
test edi, 0x100000
je 0xc4d2f6
test al, 0x30
mov dword [esp + 0x2c], 1
je 0xc4d2fe
mov dword [esp + 0x2c], 0
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00c5d500
lea ecx, [esp + 0x74]
call fcn.00ca07c0
mov eax, dword [0x100bd2c0]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00c5d390
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x10]
push eax
call edx
lea ecx, [esp + 0x64]
call fcn.00c5d880
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x78]
call fcn.00c5d770
test eax, eax
je 0xc4da29
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0xc4da29
test eax, eax
jne 0xc4d3cc
nop
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
push ecx
mov edi, eax
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x80]
add esi, 0x18
call fcn.00c5d560
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0xc4d47b
test dword [esp + 0x3c], 0x10
je 0xc4d457
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x78]
call fcn.00c5d770
test eax, eax
je 0xc4d3cc
cmp dword [esp + 0x70], 0
je 0xc4d370
lea edx, [esp + 0x14]
push 4
push edx
call fcn.00c30f10
add esp, 8
test ebx, ebx
jne 0xc4d593
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x48]
push edx
call eax
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0xc4d4af
test dword [esp + 0x3c], 0x10
je 0xc4d4af
test dword [ebp + 0x30], 0x40
jne 0xc4d84b
cmp dword [esp + 0x1c], ebx
jne 0xc4d4af
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], 0
mov dword [ecx], 0xc0000035
lea ecx, [esp + 0x14]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
lea ecx, [esp + 0x10]
mov dword [edx], 0xc000003a
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
cmp eax, 0xc0000034
jne 0xc4e4f2
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov dword [ecx], 0xc000003a
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x28]
mov ebx, eax
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push ecx
push edx
push eax
add esi, 0x14
call fcn.00c5dea0
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
mov eax, dword [esi]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, ebx
call eax
test eax, eax
jne 0xc4d973
lea ecx, [esp + 0x74]
call fcn.00c5d6e0
test eax, eax
je 0xc4d580
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x78]
call fcn.00c5d6f0
mov edx, dword [eax + 4]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x7c]
call fcn.00c5d560
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00c70180
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov ebx, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
add esi, 0x18
call fcn.00ca07c0
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0xc4d580
mov eax, dword [esp + 0x34]
test al, 0x20
jne 0xc4d580
mov ecx, dword [esp + 0x10]
or eax, 0x20
mov dword [esp + 0x34], eax
mov esi, dword [ecx]
mov ebx, ecx
push eax
lea ecx, [esp + 0x28]
add esi, 0x1c
call fcn.00ca07c0
push eax
mov eax, dword [esi]
mov ecx, ebx
call eax
neg edi
sbb edi, edi
and edi, 0xfffffffe
add edi, 2
mov dword [esp + 0x18], edi
jmp 0xc4d6eb
cmp ebx, 2
jne 0xc4d7a2
cmp dword [esp + 0x1c], 0
je 0xc4d5dc
mov ecx, dword [ebp + 0x18]
call fcn.00c5d6e0
test eax, eax
je 0xc4d5dc
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
lea ecx, [esp + 0x14]
mov dword [edx], 0xc0000103
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x48]
push edx
call eax
test eax, eax
jne 0xc4d612
test dword [ebp + 0x30], 0x40
je 0xc4d42a
test byte [esp + 0x3c], 0x10
je 0xc4d42a
jmp 0xc4d84b
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x28]
lea edx, [esp + 0x14]
mov edi, eax
mov eax, dword [ebp + 0x30]
push edx
push eax
add esi, 0xc
push ecx
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x24]
push edx
push eax
call fcn.00c5dea0
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
mov eax, dword [esi]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call eax
test eax, eax
jne 0xc4d973
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], 2
call fcn.00c5d6e0
test eax, eax
je 0xc4d6eb
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x78]
call fcn.00c5d6f0
mov edx, dword [eax + 4]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x7c]
call fcn.00c5d560
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00c70180
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov edi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
add esi, 0x18
call fcn.00ca07c0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0xc4d6eb
mov eax, dword [esp + 0x34]
test al, 0x20
jne 0xc4d6eb
mov ecx, dword [esp + 0x10]
or eax, 0x20
mov dword [esp + 0x34], eax
mov esi, dword [ecx]
mov edi, ecx
push eax
lea ecx, [esp + 0x28]
add esi, 0x1c
call fcn.00ca07c0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00c5a870
mov esi, dword [eax]
add esp, 0x18
test esi, esi
mov dword [esp + 0x34], esi
je 0xc4d720
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
lea ecx, [esp + 0x3c]
call fcn.00c66940
mov eax, dword [ebp + 0x2c]
cmp eax, 4
je 0xc4d73a
cmp eax, 5
jne 0xc4d9a1
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x3c]
push eax
call edx
test byte [esp + 0x3c], 0x10
jne 0xc4d78b
lea eax, [esp + 0x24]
push 4
push eax
call fcn.00c30f10
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x24]
push eax
call edx
mov edx, dword [esp + 0x24]
mov edi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [edi + 0x18]
push edx
call eax
lea ecx, [esp + 0x24]
call fcn.00c66940
mov edi, dword [esp + 0x18]
cmp edi, 1
jne 0xc4d9a5
mov edi, 3
jmp 0xc4d9a5
cmp ebx, 1
je 0xc4d7ba
cmp ebx, 3
je 0xc4d7ba
cmp ebx, 4
je 0xc4d7ba
cmp ebx, 5
jne 0xc4d967
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
call edx
test eax, eax
jne 0xc4d878
mov eax, dword [esp + 0x3c]
shr eax, 4
and eax, 1
mov ecx, 0x40
je 0xc4d802
cmp ebx, 4
je 0xc4d7f2
cmp ebx, 5
jne 0xc4d802
cmp dword [esp + 0x1c], 0
jne 0xc4d809
test dword [ebp + 0x30], ecx
je 0xc4d42a
cmp dword [esp + 0x1c], 0
je 0xc4d83a
test eax, eax
jne 0xc4d83a
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], 0
lea ecx, [esp + 0x14]
mov dword [eax], 0xc0000103
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
test dword [ebp + 0x30], ecx
je 0xc4d906
test eax, eax
je 0xc4d906
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
lea ecx, [esp + 0x14]
mov dword [edx], 0xc00000ba
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea ecx, [esp + 0x74]
call fcn.00c5d6e0
test eax, eax
je 0xc4d8e9
cmp ebx, 1
jne 0xc4d8e9
cmp dword [esp + 0x1c], 0
je 0xc4d8e9
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00c5d620
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
push eax
call edx
test eax, eax
jne 0xc4d906
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], 0
mov dword [ecx], 0xc0000103
lea ecx, [esp + 0x14]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea ecx, [esp + 0x74]
call fcn.00c5d6e0
test eax, eax
je 0xc4d906
cmp ebx, 3
jne 0xc4d906
cmp dword [esp + 0x1c], 0
jne 0xc4d80d
mov ebx, dword [ebp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
lea eax, [esp + 0x54]
push eax
call edx
test eax, eax
jne 0xc4d938
mov dword [esp + 0x18], 1
jmp 0xc4d6eb
mov ecx, dword [ebp + 0x2c]
cmp ecx, 1
je 0xc4d9fb
cmp ecx, 4
je 0xc4d9fb
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x30]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push ecx
add esi, 0xc
push ebx
jmp 0xc4d62a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0xc4d6eb
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
and eax, 0xefffffff
lea ecx, [esp + 0x14]
mov dword [edx], eax
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push esi
call fcn.00c41350
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x3c]
mov dword [edx], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], edi
mov dword [eax], 0
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov dword [ecx], 0
lea ecx, [esp + 0x34]
call fcn.00c66940
lea ecx, [esp + 0x14]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [edx], 0
mov dword [ecx], eax
lea ecx, [esp + 0x14]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
test ebx, ebx
jne 0xc4df11
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
test esi, esi
mov edi, eax
je 0xc4da6c
mov ecx, dword [ebp + 0x40]
mov eax, dword [esp + 0x10]
test eax, eax
mov edx, dword [ebp + 0x3c]
mov dword [ecx], ebx
mov dword [edx], 0xc000000d
je 0xc4e506
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
cmp word [esp + 0x44], 0
jne 0xc4daca
cmp edi, 2
jne 0xc4daca
test dword [ebp + 0x30], 0x40
je 0xc4daa6
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], 0
mov dword [ecx], 0xc00000ba
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], 0
lea ecx, [esp + 0x10]
mov dword [eax], 0xc0000035
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [ebp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
mov ecx, eax
call fcn.00c70450
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call edx
mov ecx, eax
call fcn.00c70450
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x48]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0xa8]
push eax
push edi
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
push eax
call edx
lea ecx, [esp + 0x34]
call fcn.00c70440
lea ecx, [esp + 0x24]
call fcn.00c70440
lea eax, [esp + 0x18]
push 4
push eax
call fcn.00c30f10
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.00c30f10
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov edi, dword [ebp + 0x28]
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
mov ebx, eax
mov eax, dword [ebp + 0x30]
push eax
push edi
push ecx
push 0x100b0384
lea ecx, [esp + 0x60]
add esi, 0x10
call fcn.00c70160
mov ecx, eax
call fcn.00ca07c0
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
test eax, eax
je 0xc4dbd0
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [ecx], 0
mov dword [edx], eax
lea ecx, [esp + 0x1c]
call fcn.00c66940
lea ecx, [esp + 0x18]
call fcn.00c66940
lea ecx, [esp + 0x14]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
xor ebx, ebx
cmp word [esp + 0x44], bx
jbe 0xc4dd68
lea eax, [esp + 0x24]
push 4
push eax
call fcn.00c30f10
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
add esp, 8
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0xc]
push edi
push eax
lea eax, [esp + 0x54]
push eax
call edx
mov ecx, eax
and ecx, 0xefffffff
cmp ecx, 0xc0000034
jne 0xc4dd3f
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x24]
push edx
mov ebx, eax
mov eax, dword [ebp + 0x30]
push eax
push edi
push 0
push ecx
add esi, 0xc
call fcn.00c5dea0
mov edx, dword [ebp + 0xc]
add esp, 8
push eax
push edx
mov edx, dword [esi]
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0xc4dd47
lea ebx, [eax + 2]
lea ecx, [esp + 0x74]
call fcn.00c5d6e0
test eax, eax
je 0xc4dcec
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x78]
call fcn.00c5d6f0
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x7c]
call fcn.00c5d560
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.00c70180
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
add esi, 0x18
call fcn.00ca07c0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0xc4dcec
mov eax, dword [esp + 0x3c]
test al, 0x20
jne 0xc4dcec
mov ecx, dword [esp + 0x10]
or eax, 0x20
mov dword [esp + 0x3c], eax
mov esi, dword [ecx]
mov edi, ecx
push eax
lea ecx, [esp + 0x50]
add esi, 0x1c
call fcn.00ca07c0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
lea ecx, [esp + 0x34]
push 4
push ecx
call fcn.00c30f10
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x34]
push eax
call edx
mov edx, dword [esp + 0x34]
mov esi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00c3bf90
lea ecx, [esp + 0x34]
call fcn.00c66940
lea ecx, [esp + 0x24]
call fcn.00c66940
jmp 0xc4dd76
test eax, eax
je 0xc4dc5c
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
and eax, 0xefffffff
lea ecx, [esp + 0x24]
mov dword [edx], eax
call fcn.00c66940
jmp 0xc4dba3
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00c3bf90
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
cmp eax, 2
je 0xc4ddc0
lea eax, [esp + 0x34]
push 4
push eax
call fcn.00c30f10
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x34]
push eax
call edx
mov edx, dword [esp + 0x34]
mov esi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
lea ecx, [esp + 0x34]
call fcn.00c66940
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00c5a870
mov esi, dword [eax]
add esp, 0x18
test esi, esi
mov dword [esp + 0x34], esi
je 0xc4ddf6
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
lea ecx, [esp + 0x3c]
call fcn.00c66940
mov eax, dword [esp + 0x2c]
push eax
push esi
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00c41350
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [esi + 0x48]
push edx
lea ecx, [esp + 0x40]
call fcn.00c70080
lea eax, [esp + 0x30]
push 4
push eax
call fcn.00c30f10
mov edx, dword [ebp + 0x10]
add esp, 8
lea ecx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.00c4d160
test eax, eax
jne 0xc4dee8
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x30]
mov ecx, esi
call edx
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x2c], eax
call edx
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jne 0xc4dee8
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x2c]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0xc]
push eax
call edx
lea ecx, [esp + 0x2c]
call fcn.00c66940
lea ecx, [esp + 0x24]
call fcn.00c66940
lea ecx, [esp + 0x30]
call fcn.00c66940
lea ecx, [esp + 0x3c]
call fcn.00c700b0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x3c]
mov dword [eax + 4], ebx
mov dword [eax], 0
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov dword [ecx], 0
lea ecx, [esp + 0x34]
call fcn.00c66940
jmp 0xc4dba3
mov edx, dword [ebp + 0x44]
lea ecx, [esp + 0x30]
mov dword [edx], 1
call fcn.00c66940
lea ecx, [esp + 0x3c]
call fcn.00c700b0
lea ecx, [esp + 0x34]
call fcn.00c66940
jmp 0xc4dba3
cmp ebx, 2
jne 0xc4e19d
test esi, esi
lea eax, [ebx + 0x3e]
je 0xc4df4a
test dword [ebp + 0x30], eax
je 0xc4df4a
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], 0
mov dword [ecx], 0xc000000d
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
cmp word [esp + 0x44], 0
jne 0xc4dfd9
test dword [ebp + 0x30], eax
je 0xc4dfb5
mov esi, dword [esp + 0x10]
mov edi, dword [esi]
lea edx, [esp + 0x3c]
push edx
push 0x100b0384
lea ecx, [esp + 0x64]
call fcn.00c70160
mov ecx, eax
call fcn.00ca07c0
push eax
mov eax, dword [edi + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0xc4dfb5
test dword [esp + 0x3c], 0x10
je 0xc4dfb5
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
lea ecx, [esp + 0x10]
mov dword [edx], 0xc00000ba
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], 0
mov dword [ecx], 0xc0000035
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
test esi, esi
je 0xc4e001
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], 0
lea ecx, [esp + 0x10]
mov dword [eax], 0xc0000103
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.00c30f10
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x28]
add esp, 8
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 0x24]
mov edi, eax
mov eax, dword [ebp + 0x30]
push eax
push ecx
push 0
push edx
add esi, 0xc
call fcn.00c5dea0
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi]
add esp, 8
push eax
push ebx
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call edx
test eax, eax
je 0xc4e078
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
and eax, 0xefffffff
lea ecx, [esp + 0x24]
mov dword [edx], eax
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea ecx, [esp + 0x74]
call fcn.00c5d6e0
test eax, eax
je 0xc4e108
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x78]
call fcn.00c5d6f0
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x7c]
call fcn.00c5d560
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.00c70180
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
add esi, 0x18
call fcn.00ca07c0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0xc4e108
mov eax, dword [esp + 0x3c]
test al, 0x20
jne 0xc4e108
mov ecx, dword [esp + 0x10]
or eax, 0x20
mov dword [esp + 0x3c], eax
mov esi, dword [ecx]
mov edi, ecx
push eax
lea ecx, [esp + 0x50]
add esi, 0x1c
call fcn.00ca07c0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x30]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
push edx
lea eax, [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00c5a870
mov esi, dword [eax]
add esp, 0x18
test esi, esi
mov dword [esp + 0x34], esi
je 0xc4e13a
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
lea ecx, [esp + 0x3c]
call fcn.00c66940
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push edx
push esi
call fcn.00c41350
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x40]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], 2
mov dword [eax], 0
mov eax, dword [ebp + 0x3c]
mov dword [edx], 0
mov dword [eax], 0
lea ecx, [esp + 0x34]
call fcn.00c66940
lea ecx, [esp + 0x24]
call fcn.00c66940
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
cmp ebx, 1
je 0xc4e1b5
cmp ebx, 3
je 0xc4e1b5
cmp ebx, 4
je 0xc4e1b5
cmp ebx, 5
jne 0xc4e4fd
test esi, esi
je 0xc4e209
test dword [ebp + 0x30], 0x40
je 0xc4e1e6
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], 0
lea ecx, [esp + 0x10]
mov dword [edx], 0xc000000d
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
test esi, esi
je 0xc4e209
cmp word [esp + 0x44], 0
jbe 0xc4e209
cmp ebx, 1
je 0xc4dfdd
cmp ebx, 3
je 0xc4dfdd
jmp 0xc4df26
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
call edx
cmp eax, 0xd0000034
jne 0xc4e229
xor edi, edi
jmp 0xc4e234
test eax, eax
jne 0xc4e4ea
lea edi, [eax + 1]
cmp ebx, 1
je 0xc4e242
cmp ebx, 4
je 0xc4e242
xor eax, eax
jmp 0xc4e247
mov eax, 1
xor ecx, ecx
test edi, edi
sete cl
test eax, ecx
je 0xc4e276
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], 0
lea ecx, [esp + 0x10]
mov dword [eax], 0xc0000034
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
test edi, edi
je 0xc4e2f2
mov eax, dword [esp + 0x14]
shr eax, 4
and eax, 1
test esi, esi
mov dword [esp + 0x34], eax
je 0xc4e29e
cmp ebx, 4
je 0xc4e1c2
cmp ebx, 5
je 0xc4e1c2
mov ecx, dword [ebp + 0x30]
and ecx, 0x40
jne 0xc4e2c0
test esi, esi
jne 0xc4e2c4
test eax, eax
je 0xc4e2c0
cmp ebx, 4
je 0xc4dfb5
cmp ebx, 5
je 0xc4dfb5
test esi, esi
je 0xc4e2cc
test eax, eax
je 0xc4dfdd
test ecx, ecx
je 0xc4e2f2
test eax, eax
je 0xc4e2f2
cmp word [esp + 0x44], 0
jne 0xc4df91
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
test eax, eax
je 0xc4df91
lea eax, [esp + 0x24]
push 4
push eax
call fcn.00c30f10
add esp, 8
test edi, edi
jne 0xc4e3e6
mov eax, dword [esp + 0x10]
mov ecx, esi
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push edx
push ecx
push eax
mov dword [esp + 0x48], ecx
add esi, 0xc
call fcn.00c5dea0
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
mov eax, dword [esi]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, edi
call eax
test eax, eax
jne 0xc4e04a
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], 2
call fcn.00c5d6e0
test eax, eax
je 0xc4e417
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.00c5d6f0
mov edx, dword [eax + 4]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x7c]
call fcn.00c5d560
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.00c70180
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
add esi, 0x18
call fcn.00ca07c0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0xc4e417
mov eax, dword [esp + 0x3c]
test al, 0x20
jne 0xc4e417
mov ecx, dword [esp + 0x10]
or eax, 0x20
mov dword [esp + 0x3c], eax
mov esi, dword [ecx]
mov edi, ecx
push eax
lea ecx, [esp + 0x50]
add esi, 0x1c
call fcn.00ca07c0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
jmp 0xc4e417
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x54]
push eax
call edx
test eax, eax
jne 0xc4e04a
mov dword [esp + 0x18], 1
cmp ebx, 4
je 0xc4e421
cmp ebx, 5
jne 0xc4e471
cmp dword [esp + 0x34], 0
jne 0xc4e462
lea eax, [esp + 0x34]
push 4
push eax
call fcn.00c30f10
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x34]
push eax
call edx
mov edx, dword [esp + 0x34]
mov esi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
lea ecx, [esp + 0x34]
call fcn.00c66940
cmp dword [esp + 0x18], 1
jne 0xc4e471
mov dword [esp + 0x18], 3
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
push ecx
push edx
mov edx, dword [ebp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00c5a870
mov esi, dword [eax]
add esp, 0x18
test esi, esi
mov dword [esp + 0x34], esi
je 0xc4e4a6
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
lea ecx, [esp + 0x3c]
call fcn.00c66940
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
push esi
call fcn.00c41350
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x3c]
mov dword [eax + 4], edx
mov dword [eax], 0
mov eax, dword [ebp + 0x40]
mov dword [eax], 0
mov dword [ecx], 0
jmp 0xc4e179
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov edx, dword [ebp + 0x40]
mov dword [edx], 0
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call fcn.00c66940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40