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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x41c040]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], esi
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [esp + 0x2c], ecx
mov ebx, edx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
lea eax, [esi + 8]
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], 0x18
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0x240
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x60], edx
mov byte [esp + 0x16], dl
mov byte [esp + 0x15], dl
mov byte [esp + 0xf], dl
mov dword [esp + 0x5c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0xa0], edx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x20], edi
test esi, esi
jne 0x410541
lea eax, [esp + 0xa4]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x410562
or dword [ecx + 8], 0xffffffff
lea edi, [ecx + 0x10]
or dword [ecx + 0xc], 0xffffffff
xor eax, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
test edx, 0xfffffffc
je 0x410578
mov ebx, 0xc000000d
jmp 0x4114e0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41056e
test esi, esi
je 0x410598
cmp byte [esi + 0xc], bl
je 0x410598
mov cl, 1
mov byte [esp + 0x13], cl
mov byte [esp + 0x19], cl
jmp 0x410661
test dl, 1
je 0x41065a
lea ecx, [esp + 0xc3]
push ecx
lea ecx, [esp + 0x6c]
push ecx
push dword [esp + 0x2c]
mov ecx, eax
call dword [0x41e158]
call dword [esp + 0x28]
cmp byte [esp + 0xc3], bl
jne 0x410640
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc8], eax
test esi, esi
je 0x4105ea
push 1
push dword [esp + 0x28]
mov ecx, esi
call dword [0x41e158]
call esi
mov edx, dword [esp + 0x40]
test edx, edx
je 0x41060e
mov esi, dword [edx + 4]
lea eax, [esp + 0x68]
push eax
push dword [edx]
mov ecx, esi
push 0
push 0
call dword [0x41e158]
call esi
mov esi, dword [esp + 0x28]
cmp dword [esp + 0xc8], 0x10
je 0x41064a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc3]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x2c]
call dword [0x41e158]
call dword [esp + 0x28]
cmp byte [esp + 0xc3], bl
je 0x4105cb
mov ebx, 0xc000000d
jmp 0x4114dc
mov eax, dword [esp + 0x1c]
mov cl, 1
mov edx, dword [esp + 0x30]
mov byte [esp + 0x13], cl
jmp 0x41065c
mov cl, bl
mov byte [esp + 0x19], 1
push 2
pop esi
and edx, esi
mov dword [esp + 0x50], 0x5c
mov dword [esp + 0x30], edx
test edx, edx
je 0x41067e
test cl, cl
jne 0x4114da
lea ecx, [esp + 0xc3]
push ecx
lea ecx, [esp + 0x6c]
push ecx
push dword [esp + 0x2c]
mov ecx, eax
call dword [0x41e158]
call dword [esp + 0x28]
cmp byte [esp + 0xc3], 0
jne 0x4114da
mov eax, dword [esp + 0x40]
mov byte [esp + 0x1a], 1
test eax, eax
je 0x4106d1
mov esi, dword [eax + 4]
lea ecx, [esp + 0x68]
push ecx
push dword [eax]
mov ecx, esi
push 0
push 0
call dword [0x41e158]
call esi
push 2
pop esi
mov eax, dword [esp + 0x68]
dec eax
cmp eax, 0x10
ja case.default.0x4106df
jmp dword [eax*4 + 0x41157e]
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4114a1
lea ecx, [esi + 4]
call fcn.0040ed76
test al, al
je 0x4114a1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x410710
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x14]
mov esi, dword [edi + 0x2c]
mov dword [esp + 0x7c], ecx
xor ecx, ecx
push ecx
push ecx
push dword [eax]
lea eax, [esp + 0x80]
push 4
push ecx
push ecx
push eax
push 0x20006
lea eax, [esp + 0x84]
mov ecx, esi
push eax
push dword [edi + 0x50]
push 4
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x41075a
lea edx, [esp + 0x64]
mov ecx, edi
call fcn.0040edfa
and dword [esp + 0x84], 0
push 2
pop esi
jmp case.0x4106df.14
and dword [esp + 0xc4], 0
mov eax, dword [esp + 0x6c]
push 7
pop esi
test eax, eax
je 0x4114a1
lea ecx, [eax + 4]
call fcn.0040ed76
test al, al
je 0x4114a1
lea eax, [esp + 0xc4]
mov dword [esp + 0x7c], ecx
push eax
mov eax, dword [esp + 0x18]
mov edx, edi
push dword [eax]
lea eax, [esp + 0x7c]
push eax
push 0x10000
lea eax, [esp + 0x74]
push eax
call fcn.0040fef1
mov ebx, eax
test ebx, ebx
js 0x4114ba
cmp dword [esp + 0xc4], 2
je 0x41086a
cmp dword [esp + 0xc4], 3
je 0x41086a
mov eax, dword [esp + 0x6c]
test byte [eax], 1
je 0x4107eb
push 0xf
pop esi
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x68]
push dword [edi + 0x50]
push esi
mov esi, dword [edi + 0x34]
mov ecx, esi
call dword [0x41e158]
call esi
lea edx, [esp + 0x64]
mov ecx, edi
mov ebx, eax
call fcn.0040edfa
mov eax, dword [esp + 0xc4]
push 2
pop esi
cmp eax, esi
je 0x41082d
cmp eax, 3
je 0x41082d
cmp eax, 4
jne 0x410842
mov ecx, dword [esp + 0x6c]
xor edx, edx
add ecx, 4
call fcn.0040ee3c
mov eax, dword [esp + 0xc4]
cmp eax, 5
jne case.0x4106df.14
mov eax, dword [esp + 0x6c]
add eax, 4
push eax
push 0x403544
push 1
push 0x65
call dword [sym.imp.ntdll.dll_DbgPrintEx]
add esp, 0x10
jmp case.0x4106df.14
mov ecx, dword [esp + 0x6c]
xor edx, edx
add ecx, 4
call fcn.0040ee3c
jmp 0x410762
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4114a1
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0040ed76
test al, al
je 0x4114a1
lea ecx, [esi + 0xc]
call fcn.0040ed39
test al, al
je 0x4114a1
cmp dword [esi + 0x18], 0xffffffff
ja 0x4114a1
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov esi, dword [edi + 0x2c]
push ecx
push ecx
push dword [eax]
lea eax, [esp + 0x80]
mov dword [esp + 0x88], ebx
push 4
push ecx
push ecx
push eax
push 0x20006
lea eax, [esp + 0x84]
mov ecx, esi
push eax
push dword [edi + 0x50]
push 4
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov eax, dword [esp + 0x6c]
xor edx, edx
mov esi, dword [edi + 0x3c]
push edx
push dword [eax + 0x18]
lea ecx, [eax + 0xc]
push dword [eax + 0x20]
push dword [eax + 0x14]
push edx
push ecx
push dword [esp + 0x7c]
mov ecx, esi
push dword [edi + 0x50]
push edx
call dword [0x41e158]
call esi
mov ebx, eax
lea edx, [esp + 0x64]
mov ecx, edi
call fcn.0040edfa
jmp 0x410762
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4114a1
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.0040ed76
test al, al
je 0x4114a1
lea ecx, [esi + 0xc]
call fcn.0040ed39
test al, al
je 0x4114a1
lea eax, [esp + 0xd4]
mov dword [esp + 0x7c], ebx
push eax
mov eax, dword [esp + 0x18]
mov edx, edi
push dword [eax]
lea eax, [esp + 0x7c]
push eax
push 0x20006
lea eax, [esp + 0x74]
push eax
call fcn.0040fef1
mov ebx, eax
test ebx, ebx
js 0x4114ba
push 2
pop esi
cmp dword [esp + 0xd4], esi
je 0x410a0e
cmp dword [esp + 0xd4], 3
je 0x410a0e
mov esi, dword [edi + 0x40]
lea eax, [esp + 0xd4]
push eax
mov eax, dword [esp + 0x70]
mov ecx, esi
add eax, 0xc
push eax
push dword [esp + 0x6c]
push dword [edi + 0x50]
push 3
call dword [0x41e158]
call esi
lea edx, [esp + 0x64]
mov ecx, edi
mov ebx, eax
call fcn.0040edfa
test ebx, ebx
js 0x4114ba
push 2
pop esi
cmp dword [esp + 0xd4], esi
je 0x410a02
cmp dword [esp + 0xd4], 3
jne case.0x4106df.14
mov eax, dword [esp + 0x6c]
lea edx, [eax + 0xc]
lea ecx, [eax + 4]
jmp 0x410a17
mov ecx, dword [esp + 0x6c]
add ecx, 4
xor edx, edx
call fcn.0040ee3c
jmp case.0x4106df.14
mov ecx, dword [esp + 0x6c]
lea edi, [esp + 0xac]
xor eax, eax
mov dword [esp + 0xa8], 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 8]
xor ecx, ecx
mov dword [esp + 0x98], eax
mov eax, 0xffff
mov esi, dword [edi + 0x2c]
push ecx
or dword [esp + 0x90], 0xffffffff
or dword [esp + 0x74], 0xffffffff
mov dword [esp + 0xc8], eax
lea eax, [esp + 0x98]
push ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xbc], 0x40
push dword [eax]
lea eax, [esp + 0xb4]
push 4
push ecx
push ecx
push eax
push 0x10e0019
lea eax, [esp + 0x90]
mov ecx, esi
push eax
push dword [edi + 0x50]
push 4
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov eax, dword [esp + 0x6c]
test byte [eax], 1
je 0x410b91
xor eax, eax
cmp ax, word [esp + 0x94]
jae 0x410b1b
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xc8]
mov ebx, dword [esp + 0x50]
movzx eax, cx
shr eax, 1
cmp word [edx + eax*2], bx
jne 0x410b0e
movzx eax, cx
mov dword [esp + 0xc4], eax
add ecx, 2
cmp cx, word [esp + 0x94]
jb 0x410af9
mov eax, dword [esp + 0xc4]
push 2
pop ecx
add eax, ecx
cmp ax, cx
jb 0x411496
mov esi, dword [edi + 0x30]
mov ecx, esi
mov word [esp + 0x94], ax
lea eax, [esp + 0x94]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x14]
push 0
push dword [eax]
lea eax, [esp + 0xb0]
push 4
push eax
push 0x1020019
lea eax, [esp + 0xa0]
push eax
push dword [edi + 0x50]
push 0
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
jns 0x410b86
lea edx, [esp + 0x70]
jmp 0x41092b
mov eax, dword [esp + 0x6c]
mov ecx, 0x20000004
jmp 0x410b96
mov ecx, 0x20000001
push dword [esp + 0x8c]
mov edx, edi
push dword [esp + 0x74]
push dword [eax + 0xc]
call fcn.0040fd00
cmp dword [esp + 0x8c], 0xffffffff
mov ebx, eax
je 0x410b7d
lea edx, [esp + 0x8c]
mov ecx, edi
call fcn.0040edfa
jmp 0x410b7d
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4114a1
mov ebx, dword [eax]
test ebx, 0xfffffffc
jne 0x4114a1
lea esi, [eax + 4]
mov ecx, esi
call fcn.0040ed76
test al, al
je 0x4114a1
push 3
pop ecx
test bl, 1
je 0x410bfe
push 7
pop ecx
lea eax, [esp + 0x38]
mov edx, edi
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [esp + 0x44]
push esi
call fcn.0040f786
mov ebx, eax
test ebx, ebx
js 0x4114ba
push 2
pop esi
cmp dword [esp + 0x38], esi
je 0x410c2f
cmp dword [esp + 0x38], 3
jne 0x410c3d
mov ecx, dword [esp + 0x6c]
xor edx, edx
add ecx, 4
call fcn.0040ee3c
cmp dword [esp + 0x38], 4
jmp 0x410845
mov eax, dword [esp + 0x68]
xor ebx, ebx
and dword [esp + 0xc4], ebx
sub eax, esi
je 0x410c6e
sub eax, esi
jne 0x410c7e
mov dword [esp + 0xc4], 0xb
mov ebx, 0x100100
jmp 0x410c7e
mov dword [esp + 0xc4], 0xa
mov ebx, 0x110000
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4114a1
cmp dword [esi], 0
jne 0x4114a1
lea ecx, [esi + 4]
call fcn.0040ed76
test al, al
je 0x4114a1
lea ecx, [esi + 0xc]
call fcn.0040ed76
test al, al
je 0x4114a1
push 0
lea eax, [esi + 4]
mov esi, dword [edi + 4]
mov dword [esp + 0x80], eax
mov ecx, esi
mov eax, dword [esp + 0x18]
push dword [eax]
lea eax, [esp + 0xd4]
push 0x4022
push 7
push eax
lea eax, [esp + 0x88]
push eax
push ebx
lea eax, [esp + 0x80]
push eax
push dword [edi + 0x50]
push 1
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov eax, dword [esp + 0x6c]
movzx esi, word [eax + 0xc]
add esi, 0x10
cmp esi, 0x10
jb 0x4114a8
lea edx, [esp + 0x58]
mov ecx, esi
call fcn.004115e8
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
movzx eax, word [eax + 0xc]
push eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x70]
push dword [eax + 0x10]
lea eax, [ebx + 0xc]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
and dword [ebx + 4], 0
xor ecx, ecx
mov byte [ebx], 1
mov edx, edi
inc ecx
push 0
push dword [eax]
mov eax, dword [esp + 0x74]
push dword [esp + 0x44]
add eax, 0xc
push eax
call fcn.0040f786
mov ebx, eax
test ebx, ebx
js 0x4114ba
push 0
push dword [esp + 0xc8]
lea eax, [esp + 0xd4]
push esi
push dword [esp + 0x6c]
mov esi, dword [edi + 0x14]
mov ecx, esi
push eax
push dword [esp + 0x78]
push dword [edi + 0x50]
push 0
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
jmp 0x410927
mov esi, dword [esp + 0x6c]
mov ebx, 0x80
test esi, esi
je 0x4114a1
cmp dword [esi], 0
jne 0x4114a1
lea ecx, [esi + 8]
call fcn.0040ed76
test al, al
je 0x4114a1
cmp dword [esi + 4], 0
je 0x410dea
mov ebx, dword [esi + 4]
mov dword [esp + 0x7c], ecx
xor ecx, ecx
mov eax, dword [esi + 0x10]
push ecx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x18]
push dword [eax]
lea eax, [esp + 0xd4]
push ecx
push ecx
push 0x4021
push 3
push 7
push ebx
push ecx
push eax
lea eax, [esp + 0x9c]
push eax
push 0x120116
lea eax, [esp + 0x94]
push eax
push dword [edi + 0x50]
push 6
mov esi, dword [edi]
mov ecx, esi
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
jmp 0x41074f
mov esi, dword [esp + 0x6c]
mov ebx, 0x100100
mov dword [esp + 0xc4], ebx
test esi, esi
je 0x4114a1
mov eax, dword [esi]
mov dword [esp + 0xc8], eax
test eax, 0xffffff00
jne 0x4114a1
lea ecx, [esi + 0xc]
call fcn.0040ed76
test al, al
je 0x4114a1
push 0xa
xor eax, eax
lea edi, [esp + 0xe4]
pop ecx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc8]
test cl, 4
je 0x410eb5
mov eax, dword [esi + 0x18]
mov dword [esp + 0xe0], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0xe4], eax
test cl, 8
je 0x410ece
mov eax, dword [esi + 0x20]
mov dword [esp + 0xe8], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0xec], eax
test cl, 0x10
je 0x410ee7
mov eax, dword [esi + 0x28]
mov dword [esp + 0xf0], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xf4], eax
lea eax, [esi + 0xc]
mov dword [esp + 0x7c], eax
mov eax, ecx
push 2
pop edx
and eax, edx
mov dword [esp + 0x48], eax
je 0x410f07
mov ebx, 0x11c0100
mov dword [esp + 0xc4], ebx
mov eax, ecx
and eax, 0x20
mov dword [esp + 0x54], eax
je 0x410f1b
or ebx, edx
mov dword [esp + 0xc4], ebx
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x34]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x74]
mov ecx, edi
push dword [esi]
push eax
lea eax, [esp + 0x23]
push eax
call fcn.0040fb59
mov ebx, eax
test ebx, ebx
js 0x4114ba
push 0
push dword [esi]
mov esi, dword [edi + 4]
lea eax, [esp + 0xd4]
push 0x4020
push 7
push eax
lea eax, [esp + 0x88]
mov ecx, esi
push eax
push dword [esp + 0xdc]
lea eax, [esp + 0x80]
push eax
push dword [edi + 0x50]
push 1
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov esi, dword [edi + 0x14]
lea eax, [esp + 0xe0]
push 0
push 4
push 0x28
push eax
lea eax, [esp + 0xdc]
mov ecx, esi
push eax
push dword [esp + 0x78]
push dword [edi + 0x50]
push 0
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x410927
cmp dword [esp + 0x54], 0
je 0x411015
mov ecx, dword [esp + 0x6c]
mov esi, dword [edi + 0x14]
push 0
push 0x14
mov eax, dword [ecx + 0x30]
mov dword [esp + 0xe0], eax
mov eax, dword [ecx + 0x34]
mov ecx, esi
push 8
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0xdc]
push eax
push dword [esp + 0x78]
push dword [edi + 0x50]
push 0
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x410927
cmp dword [esp + 0x48], 0
je 0x41117f
mov ecx, dword [esp + 0x6c]
lea edi, [esp + 0xac]
mov dword [esp + 0xa8], 0x18
xor eax, eax
stosd dword es:[edi], eax
mov dword [esp + 0x48], 0x10000000
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x9c], eax
mov esi, dword [ecx + 0x10]
or dword [esp + 0x90], 0xffffffff
mov dword [esp + 0xa0], esi
test byte [ecx], 0xc0
je 0x41113d
xor eax, eax
xor ecx, ecx
mov edx, 0xffff
cmp ax, word [esp + 0x9c]
jae 0x4110a0
mov ebx, dword [esp + 0x50]
movzx eax, cx
shr eax, 1
cmp word [esi + eax*2], bx
jne 0x41108f
movzx edx, cx
push 2
pop eax
add ecx, eax
cmp cx, word [esp + 0x9c]
jb 0x411081
jmp 0x4110a3
push 2
pop eax
mov edi, dword [esp + 0x20]
add edx, eax
cmp dx, ax
jb 0x4114af
mov esi, dword [edi + 4]
lea eax, [esp + 0x9c]
push 0
mov dword [esp + 0xb4], eax
mov ecx, esi
mov eax, dword [esp + 0x18]
mov word [esp + 0xa0], dx
mov dword [esp + 0xb8], 0x40
push dword [eax]
lea eax, [esp + 0xd4]
push 0x4020
push 7
push eax
lea eax, [esp + 0xbc]
push eax
push 0x1120000
lea eax, [esp + 0xac]
push eax
push dword [edi + 0x50]
push 1
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x410927
mov ecx, dword [esp + 0x6c]
test byte [ecx], 0x40
je 0x41112b
mov eax, 0x10000004
jmp 0x411146
test byte [ecx], 0x80
je 0x411137
mov eax, 0x10000002
jmp 0x411146
mov eax, dword [esp + 0x48]
jmp 0x411146
mov edi, dword [esp + 0x20]
mov eax, 0x10000001
push dword [esp + 0x90]
mov edx, edi
push dword [esp + 0x68]
push dword [ecx + 8]
mov ecx, eax
call fcn.0040fd00
cmp dword [esp + 0x90], 0xffffffff
mov ebx, eax
je 0x411177
lea edx, [esp + 0x90]
mov ecx, edi
call fcn.0040edfa
test ebx, ebx
js 0x410927
lea edx, [esp + 0x64]
mov ecx, edi
call fcn.0040edfa
mov eax, dword [esp + 0xc8]
test al, 1
je 0x4111a4
mov eax, dword [esp + 0x14]
push dword [eax]
mov eax, dword [esp + 0x70]
push dword [eax + 4]
jmp 0x4111b9
cmp byte [esp + 0x1b], 0
je 0x410762
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esp + 0x38]
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.0040faa9
mov ebx, eax
test ebx, ebx
js 0x4114ba
jmp 0x410762
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4114a1
cmp dword [esi + 0xc], 0xffffffff
ja 0x4114a1
lea ecx, [esi + 4]
call fcn.0040ed76
test al, al
je 0x4114a1
test dword [esi], 0xfffffffe
jne 0x4114a1
mov eax, dword [esp + 0x14]
mov esi, dword [edi + 4]
push 0
mov dword [esp + 0x80], ecx
mov ecx, esi
push dword [eax]
lea eax, [esp + 0xd4]
push 0x4060
push 7
push eax
lea eax, [esp + 0x88]
push eax
push 0x120116
lea eax, [esp + 0x80]
push eax
push dword [edi + 0x50]
push 1
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ecx, edx
test byte [eax], 1
je 0x411264
lea ecx, [eax + 0x18]
push edx
push edx
mov esi, dword [edi + 0xc]
push ecx
push dword [eax + 0xc]
mov ecx, esi
push dword [eax + 0x14]
lea eax, [esp + 0xe0]
push eax
push edx
push edx
push edx
push dword [esp + 0x88]
push dword [edi + 0x50]
push edx
call dword [0x41e158]
call esi
jmp 0x410925
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4114a1
cmp dword [esi], 0
jne 0x4114a1
lea ecx, [esi + 8]
call fcn.0040ed76
test al, al
je 0x4114a1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4112c8
mov dword [esp + 0x84], eax
mov esi, dword [esp + 0x14]
mov edx, edi
push 0
push dword [esi]
push dword [esp + 0x44]
push ecx
xor ecx, ecx
inc ecx
call fcn.0040f786
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov ecx, dword [esp + 0x6c]
lea eax, [ecx + 8]
mov dword [esp + 0x7c], eax
xor eax, eax
push eax
push dword [esi]
push eax
push eax
push 0x4060
push eax
push 7
push dword [ecx + 4]
push eax
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x9c]
push eax
push 0x120116
lea eax, [esp + 0x94]
push eax
push dword [edi + 0x50]
push 1
jmp 0x410e30
and dword [esp + 0xc8], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4114a1
cmp dword [eax], 0
jne 0x4114a1
lea ecx, [eax + 4]
call fcn.0040ed76
test al, al
je 0x4114a1
lea eax, [esp + 0xc8]
mov esi, dword [edi]
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], ecx
mov ecx, esi
push dword [eax]
xor eax, eax
push eax
push eax
push 0x4020
push 1
push 7
push eax
push eax
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x9c]
push eax
push 0x100002
lea eax, [esp + 0x94]
push eax
push dword [edi + 0x50]
push 0x11
call dword [0x41e158]
call esi
cmp dword [esp + 0xc8], 5
mov ebx, eax
jne 0x4113fa
xor eax, eax
mov esi, dword [edi]
push eax
push eax
push eax
push eax
push 0x4020
push 1
push 7
push eax
push eax
lea eax, [esp + 0xf0]
mov ecx, esi
push eax
lea eax, [esp + 0x9c]
push eax
push 0x100002
lea eax, [esp + 0x94]
push eax
push dword [edi + 0x50]
push 1
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114ba
mov esi, dword [edi + 0x20]
lea eax, [esp + 0xcc]
push 0
push eax
push dword [esp + 0x6c]
mov ecx, esi
push dword [edi + 0x50]
push 0
call dword [0x41e158]
call esi
jmp 0x410925
cmp byte [esp + 0x13], 0
jne case.0x4106df.14
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x41144f
mov esi, dword [eax]
mov ecx, esi
push dword [eax + 4]
call dword [0x41e158]
call esi
mov ebx, eax
test ebx, ebx
js 0x4114dc
mov byte [esp + 0x13], 1
jmp 0x410762
mov ebx, 0xc000000d
test ebx, ebx
js 0x4114ba
mov edx, dword [esp + 0x28]
test edx, edx
je 0x411481
push 1
push dword [esp + 0x28]
mov ecx, edx
call dword [0x41e158]
call dword [esp + 0x30]
mov byte [esp + 0x1a], 0
inc dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov cl, byte [esp + 0x13]
jmp 0x410672
lea edx, [esp + 0x70]
mov ecx, edi
call fcn.0040edfa
mov ebx, 0xc000000d
jmp 0x4114ba
mov ebx, 0xc0000095
jmp 0x4114ba
lea edx, [esp + 0x64]
jmp 0x41149a
mov ebx, 0xc0000002
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4114dc
mov esi, dword [esi + 4]
mov ecx, esi
push 0
push 0
push ebx
push 2
pop eax
push eax
call dword [0x41e158]
call esi
jmp 0x4114dc
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4114ef
mov dl, byte [esp + 0x13]
mov byte [eax + 0xc], dl
test ebx, ebx
jns 0x411520
cmp byte [esp + 0x19], 0
je 0x411520
test ecx, ecx
je 0x411520
mov eax, dword [esp + 0x68]
lea edx, [ecx + 0x10]
and dword [ecx + 8], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx], ebx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x68]
call fcn.0040ffb1
mov ebx, eax
cmp byte [esp + 0x1a], 0
je 0x411546
mov esi, dword [esp + 0x28]
test esi, esi
je 0x411546
test ebx, ebx
mov ecx, esi
setns al
movzx eax, al
push eax
push dword [esp + 0x28]
call dword [0x41e158]
call esi
lea edx, [esp + 0x64]
mov ecx, edi
call fcn.0040edfa
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
call fcn.0040edd9
mov ecx, dword [esp + 0x10c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ba49
mov esp, ebp
pop ebp
ret 0x1c