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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x6c
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
test eax, eax
je 0x421de4
mov ebp, eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x54], eax
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x50], ecx
movsx edx, dl
neg edx
inc edx
mov byte [eax + 0x7e], dl
test ecx, ecx
je 0x421de4
movsx edx, byte [eax + 0x48]
test edx, edx
jne 0x421dee
xor eax, eax
add esp, 0x6c
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebx, eax
mov ebp, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x2c]
mov eax, ebx
sub eax, 0
jge 0x421e0d
xor ebp, ebp
xor ebx, ebx
xor eax, eax
mov edx, dword [esp + 0x54]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 0x70]
dec ecx
mov eax, ecx
cdq
mov dword [esp + 0x28], edx
sub ebp, ecx
sbb ebx, edx
jl 0x421e30
or ebp, ebx
je 0x421e30
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], edx
mov ebx, dword [esp + 0x54]
mov ebp, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x34]
mov edx, ebx
sub edx, 0
jge 0x421e51
xor ebp, ebp
xor ebx, ebx
xor edx, edx
mov esi, dword [esp + 0x54]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x74]
dec eax
cdq
sub ebp, eax
sbb ebx, edx
jl 0x421e6c
or ebp, ebx
je 0x421e6c
mov ebx, esi
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
mov ebx, esi
mov ebp, dword [ebx + 0x38]
mov ebx, dword [ebx + 0x3c]
mov esi, ebx
sub esi, 0
jge 0x421e8b
xor ebp, ebp
xor ebx, ebx
xor esi, esi
mov edi, dword [esp + 0x54]
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], esi
sub ebp, ecx
mov esi, dword [esp + 0x28]
sbb ebx, esi
jl 0x421ea5
or ebp, ebx
je 0x421ea5
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x38], ecx
mov ecx, esi
mov dword [ebx + 0x3c], ecx
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x44]
mov ebp, esi
sub ebp, 0
jge 0x421ec6
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov ebp, dword [esp + 0x54]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
sub ecx, eax
sbb esi, edx
jl 0x421eda
or ecx, esi
je 0x421eda
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
mov eax, dword [esp + 0x68]
xor edx, edx
call fcn.00422b98
mov eax, dword [esp + 0x68]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 0x20]
lea ecx, [ebx - 1]
mov esi, ecx
test ecx, ecx
jl 0x421f1c
mov dword [esp + 0x1c], ebx
cmp esi, ecx
jge 0x421f03
mov ebp, dword [ebp + 8]
mov edi, dword [ebp + 0x34]
cmp byte [edi + 0x81], 1
je 0x422a78
dec esi
test esi, esi
jge 0x421efc
mov ebx, dword [esp + 0x1c]
cmp esi, 0xffffffff
jne 0x421f8b
mov ecx, dword [esp + 0x54]
mov esi, dword [ecx + 0x30]
mov eax, esi
cdq
mov ebp, esi
sub ebp, dword [ecx + 0x40]
sbb edx, dword [ecx + 0x44]
jl 0x421f3d
or ebp, edx
jne 0x422360
mov ebx, dword [esp + 0x50]
mov ebp, ecx
mov edx, dword [ebp + 0x70]
add edx, edx
add edx, edx
imul edx, esi
mov ecx, dword [ebp + 0x28]
lea eax, [ecx + ecx]
add eax, eax
add eax, ebx
add eax, edx
mov edi, dword [ebp + 0x38]
sub edi, ecx
add edi, 1
add edi, edi
add edi, edi
push edi
push eax
call dword [0x5b1480]
add esp, 8
inc esi
mov eax, esi
cdq
mov ecx, esi
sub ecx, dword [ebp + 0x40]
sbb edx, dword [ebp + 0x44]
jl 0x421f43
or ecx, edx
je 0x421f43
xor esi, esi
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x20]
lea edx, [esi + 1]
mov eax, dword [esp + 0x68]
call fcn.0040461c
mov ebp, eax
xor edi, edi
mov dword [esp + 0x4c], edi
cmp esi, ebx
jge 0x421de4
movsx edx, byte [ebp + 0x30]
test edx, edx
je 0x421fc2
mov ebx, dword [esp + 0x64]
lea ecx, [ebx + 1]
mov eax, ebp
mov edx, 1
call fcn.00421da9
mov ebx, dword [ebp + 0x34]
movsx ecx, byte [ebx + 0x81]
test ecx, ecx
je 0x421fd8
movsx ecx, word [ebx + 0x78]
test ecx, ecx
jne 0x421fe0
mov ebp, dword [ebp + 0xc]
jmp 0x422106
mov ecx, dword [ebx + 0x4c]
movsx edi, byte [ecx]
test edi, edi
je 0x421ffa
movsx ecx, word [ebx + 0x7a]
test ecx, ecx
jne 0x421ffa
mov ebp, dword [ebp + 0xc]
jmp 0x422106
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x58], edx
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x5c], eax
mov edi, dword [ebx + 0x60]
mov dword [esp + 0x60], edi
mov ecx, dword [ebx + 0x64]
sub edi, edx
mov edx, ecx
sbb edx, eax
jl 0x42202a
or edi, edx
je 0x42202a
mov ebp, dword [ebp + 0xc]
jmp 0x422106
mov dword [esp + 0x48], ecx
mov edi, dword [esp + 0x54]
mov edx, dword [edi + 0x40]
mov dword [esp + 0x38], edx
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x3c], ecx
mov edi, dword [ebx + 0x68]
mov dword [esp + 0x40], edi
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x44], eax
sub edi, edx
sbb eax, ecx
mov ecx, dword [esp + 0x48]
jl 0x422064
or edi, eax
je 0x422064
mov ebp, dword [ebp + 0xc]
jmp 0x422106
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x54]
mov ebp, dword [eax + 0x28]
mov dword [esp + 0x24], ebp
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x2c], edi
mov eax, dword [ebx + 0x70]
cdq
mov ebx, dword [esp + 0x60]
add eax, ebx
mov dword [esp + 0x30], eax
adc edx, ecx
mov dword [esp + 0x28], edx
sub eax, ebp
sbb edx, edi
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
jl 0x4220a4
or eax, edx
jne 0x4220a9
mov ebp, dword [ebp + 0xc]
jmp 0x422106
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ecx
mov edi, dword [esp + 0x54]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x14], ecx
mov edi, dword [edi + 0x34]
mov dword [esp + 0x50], edi
mov eax, dword [ebx + 0x74]
cdq
mov ebx, dword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x44]
adc edx, ebx
sub eax, ecx
mov ebx, edx
mov ecx, edi
sbb ebx, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
jl 0x4220f3
or eax, dword [esp + 0x18]
jne 0x4220f8
mov ebp, dword [ebp + 0xc]
jmp 0x422106
movsx edi, byte [ebx + 0xa0]
test edi, edi
je 0x422113
mov ebp, dword [ebp + 0xc]
inc esi
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0x20]
jmp 0x421f9f
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
sub eax, edi
mov edi, dword [esp + 0x2c]
sbb ecx, edi
jge 0x422130
mov ecx, 4
mov dword [esp + 0x18], ecx
jmp 0x422136
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
sub edi, ecx
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
sbb edi, ecx
jge 0x422151
or dword [esp + 0x18], 1
mov eax, dword [esp + 0x30]
add eax, 0xffffffff
mov ecx, dword [esp + 0x28]
adc ecx, 0xffffffff
mov edi, dword [esp + 0x58]
sub eax, edi
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x5c]
sbb ecx, edi
mov dword [esp + 0x28], ecx
jl 0x422182
mov ecx, eax
or ecx, dword [esp + 0x28]
je 0x422182
or dword [esp + 0x18], 8
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
adc edx, 0xffffffff
mov ecx, dword [esp + 0x38]
sub edi, ecx
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x3c]
sbb edx, ecx
jl 0x4221a9
mov ecx, edi
or ecx, edx
je 0x4221a9
or dword [esp + 0x18], 2
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x54]
mov edx, ebx
mov ecx, dword [esp + 0x18]
call fcn.00422c58
mov ecx, dword [ebx + 0x4c]
movsx edi, byte [ecx]
test edi, edi
jne 0x4221d8
xor ecx, ecx
mov dword [esp + 0x50], ecx
xor edi, edi
mov dword [esp + 0x28], edi
jmp 0x422232
xor ecx, ecx
mov byte [0x5b3480], cl
mov byte [esp + 0xc], cl
mov eax, 0x5b3480
mov edx, dword [ebx + 0x4c]
mov ecx, dword [0x7de664]
call fcn.0040cf98
movsx ecx, al
test ecx, ecx
jl 0x422b80
mov eax, dword [0x7de654]
mov edx, 0x5b3480
xor ecx, ecx
call fcn.0040d31d
mov dword [esp + 0x4c], eax
mov ecx, eax
test ecx, ecx
je 0x422a67
mov edi, dword [ecx + 0x34]
mov dword [esp + 0x50], edi
mov ecx, dword [edi + 0x90]
mov dword [esp + 0x28], ecx
cmp dword [ebx + 0x90], 0
je 0x422390
cmp byte [ebx + 0x7e], 1
je 0x42265d
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x422261
movsx ecx, word [ebx + 0x7a]
cmp ecx, 0x100
jl 0x42239c
movsx ecx, byte [0x5946f4]
test ecx, ecx
jle 0x42236f
mov dword [0x78f604], 0x65
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x54]
mov dword [esi + 0x78f61c], 0
mov eax, dword [0x7dec18]
cdq
idiv ecx
mov dword [esi + 0x78f624], eax
mov ecx, dword [0x7dec14]
mov dword [esi + 0x78f640], ecx
mov ecx, dword [0x7dec04]
mov dword [esi + 0x78f644], ecx
mov ecx, dword [0x7dec08]
mov dword [esi + 0x78f648], ecx
mov ecx, dword [0x7dec0c]
mov dword [esi + 0x78f64c], ecx
mov ecx, dword [0x7dec10]
mov dword [esi + 0x78f650], ecx
mov dword [esi + 0x78f658], ebp
mov dword [esi + 0x78f65c], ebx
push dword [edi*4 + 0x791000]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi*4 + 0x791100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jge 0x422367
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x78f604], 0x65
test edi, edi
je 0x42228c
cmp edi, 1
jne 0x4222a4
mov eax, dword [0x7dec18]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x78f61c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x78f624], ecx
jmp 0x4222a4
xor esi, esi
jmp 0x421f8b
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422390
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x791200]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jl 0x422375
mov byte [ebx + 0x4b], 1
mov ebp, dword [ebp + 0xc]
jmp 0x422106
mov edx, dword [ebx + 0x70]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x70]
mov dword [esp + 0x60], edi
cmp edx, edi
jne 0x42264b
mov eax, dword [ebx + 0x74]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x74]
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x42261b
movsx eax, word [ebx + 0x7c]
movsx edi, word [ebx + 0x78]
mov dword [esp + 0x24], edi
cmp eax, 0x100
je 0x42258e
mov edx, eax
sar edx, 1
imul edx, ecx
mov edi, eax
shl edi, 7
sub edx, edi
add edx, ecx
mov dword [esp + 0x14], edx
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x10], esi
mov esi, edi
sar esi, 1
add esi, edx
cmp esi, 0xff
jle 0x42240e
mov esi, 0xff
inc esi
mov dword [ecx + 0x765200], esi
add edi, eax
add ecx, 4
cmp ecx, 0x400
jl 0x4223fb
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edi, dword [ecx + 0x765200]
imul edi, eax
sar edi, 8
mov dword [ecx + 0x765200], edi
add ecx, 4
cmp ecx, 0x400
jl 0x42242c
movsx ecx, byte [0x5946f4]
test ecx, ecx
jle 0x422564
mov dword [0x78f604], 0x66
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x50]
mov dword [esi + 0x78f61c], 0
mov eax, dword [0x7dec18]
cdq
idiv ecx
mov dword [esi + 0x78f624], eax
mov ecx, dword [0x7dec14]
mov dword [esi + 0x78f640], ecx
mov ecx, dword [0x7dec04]
mov dword [esi + 0x78f644], ecx
mov ecx, dword [0x7dec08]
mov dword [esi + 0x78f648], ecx
mov ecx, dword [0x7dec0c]
mov dword [esi + 0x78f64c], ecx
mov ecx, dword [0x7dec10]
mov dword [esi + 0x78f650], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x78f658], ecx
mov dword [esi + 0x78f65c], ebx
mov dword [esi + 0x78f660], ebp
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x78f664], ecx
push dword [edi*4 + 0x791000]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi*4 + 0x791100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jge 0x42255c
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x78f604], 0x66
test edi, edi
je 0x422474
cmp edi, 1
jne 0x42248c
mov eax, dword [0x7dec18]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x78f61c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x78f624], ecx
jmp 0x42248c
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422390
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x791200]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jl 0x42256e
jmp 0x422390
mov edi, ecx
neg edi
mov dword [esp + 0x18], edi
lea edi, [edi + 0x100]
mov dword [esp + 0x14], edi
cmp edi, 0x320
jg 0x4225fe
neg ecx
cmp ecx, 0xffffff01
jl 0x4225c7
mov ecx, 1
mov dword [ecx*4 + 0x7651fc], 0
inc ecx
cmp ecx, edi
jle 0x4225b7
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
jge 0x422426
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx + 0x200]
add ecx, ecx
mov dword [ecx + 0x765200], 0x100
add ecx, 4
cmp ecx, 0x400
jl 0x4225e4
jmp 0x422426
mov ecx, dword [esp + 0x18]
lea edi, [ecx*4 + 0x400]
push edi
push 0
push 0x765200
call fcn.0045caa8
add esp, 0xc
jmp 0x4225c7
mov ecx, edi
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x4c]
push ecx
push esi
push dword [edi + 0x14]
push eax
push edx
push dword [ebp + 0x14]
push 1
push 0x187d6
call fcn.0045c5e8
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, edi
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ecx + 0x74]
jmp 0x422625
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x422675
movsx ecx, word [ebx + 0x7a]
cmp ecx, 0x100
jl 0x4227a6
movsx ecx, byte [0x5946f4]
test ecx, ecx
jle 0x42277c
mov dword [0x78f604], 0x67
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x54]
mov dword [esi + 0x78f61c], 0
mov eax, dword [0x7dec18]
cdq
idiv ecx
mov dword [esi + 0x78f624], eax
mov ecx, dword [0x7dec14]
mov dword [esi + 0x78f640], ecx
mov ecx, dword [0x7dec04]
mov dword [esi + 0x78f644], ecx
mov ecx, dword [0x7dec08]
mov dword [esi + 0x78f648], ecx
mov ecx, dword [0x7dec0c]
mov dword [esi + 0x78f64c], ecx
mov ecx, dword [0x7dec10]
mov dword [esi + 0x78f650], ecx
mov dword [esi + 0x78f658], ebp
mov dword [esi + 0x78f65c], ebx
push dword [edi*4 + 0x791000]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi*4 + 0x791100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jge 0x422774
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x78f604], 0x67
test edi, edi
je 0x4226a0
cmp edi, 1
jne 0x4226b8
mov eax, dword [0x7dec18]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x78f61c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x78f624], ecx
jmp 0x4226b8
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422390
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x791200]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jl 0x422786
jmp 0x422390
mov edx, dword [ebx + 0x70]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x70]
mov dword [esp + 0x60], edi
cmp edx, edi
jne 0x422a55
mov eax, dword [ebx + 0x74]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x74]
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x422a25
movsx eax, word [ebx + 0x7c]
movsx edi, word [ebx + 0x78]
mov dword [esp + 0x24], edi
cmp eax, 0x100
je 0x422998
mov edx, eax
sar edx, 1
imul edx, ecx
mov edi, eax
shl edi, 7
sub edx, edi
add edx, ecx
mov dword [esp + 0x14], edx
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x10], esi
mov esi, edi
sar esi, 1
add esi, edx
cmp esi, 0xff
jle 0x422818
mov esi, 0xff
inc esi
mov dword [ecx + 0x765200], esi
add edi, eax
add ecx, 4
cmp ecx, 0x400
jl 0x422805
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edi, dword [ecx + 0x765200]
imul edi, eax
sar edi, 8
mov dword [ecx + 0x765200], edi
add ecx, 4
cmp ecx, 0x400
jl 0x422836
movsx ecx, byte [0x5946f4]
test ecx, ecx
jle 0x42296e
mov dword [0x78f604], 0x68
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x50]
mov dword [esi + 0x78f61c], 0
mov eax, dword [0x7dec18]
cdq
idiv ecx
mov dword [esi + 0x78f624], eax
mov ecx, dword [0x7dec14]
mov dword [esi + 0x78f640], ecx
mov ecx, dword [0x7dec04]
mov dword [esi + 0x78f644], ecx
mov ecx, dword [0x7dec08]
mov dword [esi + 0x78f648], ecx
mov ecx, dword [0x7dec0c]
mov dword [esi + 0x78f64c], ecx
mov ecx, dword [0x7dec10]
mov dword [esi + 0x78f650], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x78f658], ecx
mov dword [esi + 0x78f65c], ebx
mov dword [esi + 0x78f660], ebp
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x78f664], ecx
push dword [edi*4 + 0x791000]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi*4 + 0x791100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jge 0x422966
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x78f604], 0x68
test edi, edi
je 0x42287e
cmp edi, 1
jne 0x422896
mov eax, dword [0x7dec18]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x78f61c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x78f624], ecx
jmp 0x422896
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422390
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x791200]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
movsx ecx, byte [0x5946f4]
cmp edi, ecx
jl 0x422978
jmp 0x422390
mov edi, ecx
neg edi
mov dword [esp + 0x18], edi
lea edi, [edi + 0x100]
mov dword [esp + 0x14], edi
cmp edi, 0x320
jg 0x422a08
neg ecx
cmp ecx, 0xffffff01
jl 0x4229d1
mov ecx, 1
mov dword [ecx*4 + 0x7651fc], 0
inc ecx
cmp ecx, edi
jle 0x4229c1
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
jge 0x422830
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx + 0x200]
add ecx, ecx
mov dword [ecx + 0x765200], 0x100
add ecx, 4
cmp ecx, 0x400
jl 0x4229ee
jmp 0x422830
mov ecx, dword [esp + 0x18]
lea edi, [ecx*4 + 0x400]
push edi
push 0
push 0x765200
call fcn.0045caa8
add esp, 0xc
jmp 0x4229d1
mov ecx, edi
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x4c]
push ecx
push esi
push dword [edi + 0x14]
push eax
push edx
push dword [ebp + 0x14]
push 1
push 0x187d6
call fcn.0045c5e8
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, edi
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ecx + 0x74]
jmp 0x422a2f
xor ecx, ecx
mov dword [esp + 0x50], ecx
xor edi, edi
mov dword [esp + 0x28], edi
jmp 0x422232
movsx eax, byte [edi + 0x7f]
test eax, eax
jne 0x421f13
movsx eax, word [edi + 0x78]
cmp eax, 0x100
jne 0x421f13
movsx eax, byte [edi + 0x7e]
test eax, eax
jne 0x421f13
mov eax, dword [edi + 0x4c]
movsx eax, byte [eax]
test eax, eax
jne 0x422b5d
mov edx, dword [edi + 0x60]
mov dword [esp + 0x58], edx
mov ebx, dword [edi + 0x64]
mov eax, dword [esp + 0x54]
sub edx, dword [eax + 0x28]
mov dword [esp + 0x5c], edx
mov edx, ebx
sbb edx, dword [eax + 0x2c]
mov dword [esp + 0x60], edx
jl 0x422adb
mov eax, dword [esp + 0x5c]
or eax, dword [esp + 0x60]
jne 0x421f13
mov dword [esp + 0x34], ebx
mov eax, dword [edi + 0x68]
mov dword [esp + 0x5c], eax
mov ebx, dword [edi + 0x6c]
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x54]
sub eax, dword [edx + 0x30]
sbb ebx, dword [edx + 0x34]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x34]
jl 0x422b0b
or eax, dword [esp + 0x30]
jne 0x421f13
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x70]
cdq
mov esi, dword [esp + 0x58]
add esi, eax
adc ebx, edx
add esi, 0xffffffff
adc ebx, 0xffffffff
mov eax, dword [esp + 0x54]
sub esi, dword [eax + 0x38]
sbb ebx, dword [eax + 0x3c]
mov esi, dword [esp + 0x10]
jl 0x421f13
mov eax, dword [edi + 0x74]
cdq
mov ebx, dword [esp + 0x5c]
add ebx, eax
mov eax, dword [esp + 0x60]
adc eax, edx
add ebx, 0xffffffff
adc eax, 0xffffffff
mov edi, dword [esp + 0x54]
sub ebx, dword [edi + 0x40]
sbb eax, dword [edi + 0x44]
jl 0x421f13
jmp 0x422b77
je 0x421f13
movsx eax, word [edi + 0x7a]
cmp eax, 0x100
je 0x422aad
jmp 0x421f13
mov ebx, dword [esp + 0x1c]
jmp 0x421f8b
mov eax, 0xffffffff
add esp, 0x6c
pop ebx
pop ebp
pop esi
pop edi
ret