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

Disassembly:
push 0xffffffffffffffff
push 0x49552e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
mov eax, dword [esp + 0x1b8]
push ebx
push ebp
xor ebx, ebx
lea ebp, [eax + 0x54]
mov eax, dword [0x4be818]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c0], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], ebx
rep stosd dword es:[edi], eax
mov ecx, esi
mov byte [esp + 0x1c0], 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
call fcn.004242d0
mov ecx, esi
mov edi, eax
call fcn.0040d7c0
mov edx, dword [esp + 0x1c8]
sub eax, edi
mov edi, dword [esi + 0x6d4]
xor ecx, ecx
cmp eax, edi
mov eax, dword [edx + 0x20]
mov edx, dword [esi + 0xb0]
mov dword [esp + 0x54], ebx
setge cl
mov dword [esp + 0x58], ecx
xor ecx, ecx
cmp eax, edx
mov dword [esp + 0x5c], ebx
sete cl
xor edx, edx
mov eax, ecx
mov dword [esp + 0x85], edx
mov ecx, dword [esi + 0x654]
mov dword [esp + 0x89], edx
cmp eax, ebx
mov dword [esp + 0x8d], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x91], edx
mov byte [esp + 0x84], bl
mov byte [esp + 0x95], dl
mov edx, dword [esi + 0x78]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], edx
je 0x4208d1
push 0x4bb0a4
lea ecx, [esp + 0x1c]
call fcn.004844a1
mov ebx, 1
mov dword [esp + 0x28], ebx
mov byte [esp + 0x1c0], 5
jmp 0x4208f9
mov eax, dword [esp + 0x1c8]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0041b1c0
mov ebx, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c0], 6
push eax
lea ecx, [esp + 0x24]
call fcn.0048456c
test bl, 2
mov dword [esp + 0x1c0], 5
je 0x420923
and ebx, 0xfffffffd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], ebx
call fcn.00484433
test bl, 1
mov dword [esp + 0x1c0], 4
je 0x42093c
lea ecx, [esp + 0x18]
call fcn.00484433
mov ebx, dword [esp + 0x30]
mov edx, dword [0x4c3010]
xor edi, edi
mov dword [esp + 0x28], edx
cmp ebx, edi
je 0x420abd
cmp dword [esi + 0xdc], edi
je 0x420a1e
mov ecx, esi
call fcn.00413e80
test eax, eax
mov eax, dword [esi]
je 0x420a0c
push 0x4bb090
push edi
mov ecx, esi
call dword [eax + 4]
push edi
push edi
push edi
push edi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0x4c2d98
call fcn.004844a1
mov edx, dword [esi + 0xe0]
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
push 8
push edx
push ecx
mov ecx, esi
mov byte [esp + 0x1ec], 7
call fcn.00413390
lea eax, [esp + 0x38]
mov ecx, esi
push eax
mov byte [esp + 0x1e0], 4
call fcn.0040d7f0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c4], 8
call fcn.0048456c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c0], 4
call fcn.00484433
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
call fcn.004841a8
mov ecx, esi
call fcn.00411260
push eax
mov ecx, esi
call fcn.00413330
jmp 0x420a18
push 0x4bb07c
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [esi + 0xdc], edi
mov eax, dword [esp + 0x28]
test ah, 1
je 0x420abd
cmp dword [esi + 0x6a0], edi
je 0x420abd
mov ecx, dword [esi + 0xc0]
mov eax, dword [esi + 0x6b4]
cmp ecx, eax
jb 0x420abd
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0x6b8]
cmp edx, eax
jb 0x420abd
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.00414090
test eax, eax
je 0x420a7e
mov edx, dword [esi]
push 0x4bb06c
push edi
mov ecx, esi
call dword [edx + 4]
push edi
mov ecx, esi
call fcn.00413140
jmp 0x420ab7
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x1c]
push eax
push 0x4bb05c
push ecx
call fcn.0048473c
mov eax, dword [eax]
mov edx, dword [esi]
push eax
push 1
mov ecx, esi
mov byte [esp + 0x1c8], 9
call dword [edx + 4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c0], 4
call fcn.00484433
mov dword [esi + 0x6a0], edi
mov ecx, esi
call fcn.0040d7c0
mov edi, dword [esp + 0x1c8]
mov dword [esp + 0x1c], eax
xor eax, eax
lea ecx, [edi + 0x3c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jmp 0x420ae9
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c8]
mov edx, dword [esp + 0x18]
cmp dword [edx], 2
jbe 0x420b03
mov ecx, dword [edi + 0x20]
mov edx, dword [esi + 0xb0]
cmp ecx, edx
jne 0x420eb1
lea edx, [eax + eax*8]
lea ecx, [ebp + edx*8]
mov edx, dword [ebp + edx*8]
test edx, edx
je 0x420d84
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x420b30
mov edx, dword [ecx + 4]
test edx, edx
je 0x420b2a
inc dword [esp + 0x38]
jmp 0x420b3b
inc dword [esp + 0x2c]
jmp 0x420b3b
mov edx, dword [ecx + 8]
test edx, edx
je 0x420d84
cmp dword [ecx + 8], 6
jne 0x420bef
push 0
push eax
push ebp
mov ecx, esi
call fcn.0040c4d0
cmp eax, 4
jb 0x420beb
test ebx, ebx
jne 0x420bf5
mov ebx, dword [esp + 0x1c]
lea eax, [ebp + 0x510]
push eax
push ebx
mov ecx, esi
call fcn.00425460
test eax, eax
jne 0x420c1e
lea ecx, [esi + 0x5f4]
push ecx
push ebx
mov ecx, esi
call fcn.00425460
test eax, eax
jne 0x420c1e
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*8]
lea ecx, [ebp + edx*8]
mov edx, dword [ebp + edx*8 + 0x30]
test edx, edx
jne 0x420c22
mov edx, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp edx, ebx
jbe 0x420c22
test byte [esp + 0x28], 0x20
je 0x420c22
mov ecx, dword [0x4c302c]
test ecx, ecx
jne 0x420bd5
mov ecx, dword [edi + 0x57c]
test ecx, ecx
je 0x420bd5
mov ecx, dword [edi + 0x580]
test ecx, ecx
je 0x420c22
mov ecx, dword [esp + 0x34]
mov dword [esp + eax*4 + 0x98], 1
inc ecx
mov dword [esp + 0x34], ecx
jmp 0x420c22
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x420c22
jmp 0x420bf9
mov eax, dword [esp + 0x14]
test byte [esp + 0x28], 4
je 0x420ca4
mov ecx, dword [esi + 0x654]
test ecx, ecx
je 0x420c3b
mov ecx, dword [0x4c3048]
test ecx, ecx
je 0x420ca4
jmp 0x420c3b
mov eax, dword [esp + 0x14]
test byte [esp + 0x28], 0x40
je 0x420d84
mov ecx, dword [esi + 0x654]
test ecx, ecx
jne 0x420d84
lea ecx, [eax + eax*8]
mov edi, dword [ebp + ecx*8 + 0x40]
lea ecx, [ebp + ecx*8]
test edi, edi
je 0x420c68
xor edx, edx
test edi, edi
jbe 0x420c68
mov edi, dword [esp + 0x68]
mov byte [esp + edi + 0xe0], al
mov ebx, dword [ecx + 0x40]
inc edi
inc edx
cmp edx, ebx
jb 0x420c54
mov dword [esp + 0x68], edi
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x420c7f
mov edx, dword [esp + 0x70]
mov byte [esp + edx + 0x170], al
inc edx
mov dword [esp + 0x70], edx
mov edi, dword [ecx + 0x3c]
test edi, edi
je 0x420ca4
xor edx, edx
test edi, edi
jbe 0x420ca4
mov edi, dword [esp + 0x6c]
mov byte [esp + edi + 0x128], al
mov ebx, dword [ecx + 0x3c]
inc edi
inc edx
cmp edx, ebx
jb 0x420c90
mov dword [esp + 0x6c], edi
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x420d84
test byte [esp + 0x28], 2
je 0x420d84
lea edx, [eax + eax*8]
cmp dword [ebp + edx*8 + 8], 7
jne 0x420d84
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x420d84
mov edx, dword [esp + 0x1c8]
lea ecx, [esp + 0x3c]
push ecx
push eax
push edx
mov ecx, esi
call fcn.004151f0
test eax, eax
je 0x420d4d
mov ecx, esi
mov dword [esp + 0x54], 1
call fcn.0040d7c0
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + ecx*8]
mov dword [ebp + ecx*8 + 0x20], eax
mov edx, dword [esp + 0x14]
inc edx
lea eax, [esp + 0x10]
push edx
push 0x4bb040
push eax
call fcn.004827a3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ecx, ecx
add esp, 0xc
lea eax, [eax + eax*8]
mov dword [edx], ecx
mov dword [ebp + eax*8 + 0xc], ecx
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*8]
mov dword [ebp + edx*8 + 8], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
call dword [eax + 4]
jmp 0x420d80
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
inc ecx
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4bb024
push edx
call fcn.004827a3
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
add esp, 0x10
push ecx
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [esp + 0x60], 1
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x12
mov dword [esp + 0x14], eax
jl 0x420ade
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4211ee
mov ebx, dword [esp + 0x1c8]
mov ecx, esi
lea edx, [ebx + 0x564]
push edx
call fcn.0040d7c0
push eax
mov ecx, esi
call fcn.00425460
test eax, eax
jne 0x4211ee
mov ecx, dword [0x4c3030]
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x421024
mov ecx, dword [esp + 0x34]
mov edx, dword [0x4c3088]
cmp ecx, edx
jb 0x421024
xor edi, edi
lea ecx, [esp + 0x98]
cmp dword [ecx], 0
je 0x420dfd
mov byte [esp + edi + 0x84], al
inc edi
inc eax
add ecx, 4
cmp eax, 0x12
jl 0x420df0
mov ebx, dword [esp + 0x1c8]
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x88]
push edi
push eax
push ebx
mov ecx, esi
call fcn.00416230
test eax, eax
je 0x420fa1
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edx, [esp + 0x1c]
push ebx
push edx
mov ecx, esi
call fcn.0041b1c0
mov ecx, dword [esp + 0x40]
mov edx, dword [eax]
push ecx
push edi
push edx
lea eax, [esp + 0x1c]
push 0x4bb008
push eax
mov byte [esp + 0x1d4], 0xb
call fcn.004827a3
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c0], 4
call fcn.00484433
mov eax, dword [esp + 0x44]
cmp eax, edi
jae 0x420f21
sub edi, eax
lea ecx, [esp + 0x24]
push edi
push 0x4baff8
push ecx
call fcn.004827a3
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call fcn.0048484b
jmp 0x420f47
lea ecx, [esp + 0x40]
mov byte [esp + 0x1c0], 0xa
call fcn.00484433
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c0], 3
call fcn.00484433
lea ecx, [esp + 0x74]
mov byte [esp + 0x1c0], 2
call fcn.00484433
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c0], 1
call fcn.00484433
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c0], 0
call fcn.00484433
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00484433
xor eax, eax
jmp 0x421b2e
lea eax, [esp + 0x98]
lea ecx, [ebx + 0x84]
mov edx, 0x12
cmp dword [eax], 0
je 0x420f3e
mov dword [ecx], 1
add eax, 4
add ecx, 0x48
dec edx
jne 0x420f33
mov eax, dword [esp + 0x4c]
test eax, eax
jge 0x420f6b
neg eax
push eax
lea eax, [esp + 0x28]
push 0x4bafe4
push eax
call fcn.004827a3
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
jmp 0x420f85
jle 0x420f8e
push eax
lea edx, [esp + 0x28]
push 0x4bafd4
push edx
call fcn.004827a3
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.0048484b
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 0
mov ecx, esi
call dword [edx + 4]
jmp 0x4211cf
lea ecx, [esp + 0x64]
push ebx
push ecx
mov ecx, esi
call fcn.0041b1c0
mov edx, dword [esp + 0x3c]
mov eax, dword [eax]
push edx
push edi
push eax
lea ecx, [esp + 0x1c]
push 0x4bafb0
push ecx
mov byte [esp + 0x1d4], 0xc
call fcn.004827a3
add esp, 0x14
lea ecx, [esp + 0x64]
mov byte [esp + 0x1c0], 4
call fcn.00484433
push 0x4ba4c4
lea ecx, [esp + 0x40]
call fcn.0048241d
test eax, eax
jge 0x421006
push 0x4bafa4
lea ecx, [esp + 0x40]
call fcn.0048241d
test eax, eax
jl 0x421011
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x4211ee
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + eax*4 + 0x98]
test ecx, ecx
je 0x4211b5
lea edx, [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push 1
push eax
push ebx
mov ecx, esi
call fcn.00416230
test eax, eax
je 0x42114c
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1c], 1
test edx, edx
jne 0x4210a5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
neg ecx
lea edx, [eax + eax*8]
push ecx
inc eax
mov ecx, dword [ebp + edx*8 + 0xc]
mov edx, dword [esi + 0x61c]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*8 + 0x10]
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
lea eax, [esp + 0x20]
push 0x4baf7c
push eax
call fcn.004827a3
add esp, 0x18
jmp 0x421103
mov eax, dword [esp + 0x14]
mov ebx, dword [esi + 0x61c]
lea ecx, [eax + eax*8]
inc eax
mov ecx, dword [ebp + ecx*8 + 0xc]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
mov ecx, dword [ebx + ecx*8 + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x28]
push eax
push edx
lea eax, [esp + 0x20]
push 0x4baf5c
push eax
call fcn.004827a3
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1e0]
add esp, 0x18
lea ecx, [eax + eax*8]
mov eax, dword [ebp + ecx*8 + 0xc]
mov ecx, dword [esp + 0x48]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x61c]
lea eax, [eax + edx*8 + 0x40]
add dword [eax], ecx
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x42112c
push eax
lea edx, [esp + 0x28]
push 0x4bafd4
push edx
call fcn.004827a3
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.0048484b
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*8]
mov dword [ebp + ecx*8 + 0x30], 1
mov eax, dword [esp + 0x10]
mov dword [edi], 0
mov edx, dword [esi]
push eax
push 0
jmp 0x4211b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [eax + eax*8]
inc eax
mov ecx, dword [ebp + edx*8 + 0xc]
mov edx, dword [esi + 0x61c]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*8 + 0x10]
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
lea eax, [esp + 0x20]
push 0x4baf3c
push eax
call fcn.004827a3
add esp, 0x18
lea ecx, [esp + 0x3c]
push 0x4ba4c4
call fcn.0048241d
test eax, eax
jl 0x4211a7
mov ecx, dword [ebx + 0x20]
mov eax, dword [esi + 0xb0]
cmp ecx, eax
je 0x4211a7
inc dword [edi]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x12
mov dword [esp + 0x14], eax
jl 0x42102c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4211ee
mov edi, dword [esp + 0x1c8]
test byte [edi + 0x44], 1
je 0x4211e6
push 1
push edi
mov ecx, esi
call fcn.0041ca10
mov eax, dword [edi + 0x44]
and al, 0xfe
mov dword [edi + 0x44], eax
mov edi, dword [esi + 0xbc]
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x421304
mov eax, dword [esi + 0x654]
test eax, eax
je 0x421223
mov eax, dword [esp + 0x30]
test eax, eax
je 0x421304
mov eax, dword [0x4c3048]
test eax, eax
je 0x421304
mov ecx, dword [esp + 0x1c8]
lea eax, [ecx + 0x94]
mov ecx, 0x12
mov dword [eax], 0
add eax, 0x48
dec ecx
jne 0x421235
mov ecx, dword [esp + 0x1c8]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xe4]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.004144f0
test eax, eax
je 0x4213f5
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x18]
push 0x4baf24
push ecx
mov dword [edx], 0
mov dword [esp + 0x6c], 1
call fcn.004827a3
add esp, 0x10
mov eax, dword [esi + 0xbc]
cmp eax, edi
jne 0x4212c5
push 0x4baf18
lea ecx, [esp + 0x14]
call fcn.0048480f
mov dword [esi + 0x654], 1
mov dword [esi + 0x78], 0x96
mov dword [0x4c3190], 0x12c
jmp 0x4212d7
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0x78]
sub edx, edi
shr edx, 1
add eax, edx
mov dword [esi + 0x78], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push 0
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esp + 0x1c8]
test byte [edi + 0x44], 2
je 0x4212fc
push 2
push edi
mov ecx, esi
call fcn.0041ca10
mov eax, dword [edi + 0x44]
and al, 0xfd
mov dword [edi + 0x44], eax
mov ecx, dword [esi + 0xbc]
mov edi, dword [esp + 0x6c]
test edi, edi
mov dword [esp + 0x34], ecx
je 0x4214cb
mov eax, dword [esi + 0x654]
test eax, eax
je 0x42133d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4214cb
mov eax, dword [0x4c3048]
test eax, eax
je 0x4214cb
mov edx, dword [esp + 0x1c8]
mov ecx, 0x12
lea eax, [edx + 0x90]
mov dword [eax], 0
add eax, 0x48
dec ecx
jne 0x42134f
mov ebx, dword [esp + 0x1c8]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x12c]
push edi
push ecx
push ebx
mov ecx, esi
call fcn.004155a0
test eax, eax
je 0x421477
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x18]
mov ebx, 1
push 0x4baf00
push ecx
mov dword [edx], 0
mov dword [esp + 0x6c], ebx
call fcn.004827a3
mov eax, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [esi + 0xbc]
cmp ecx, eax
jne 0x421455
push 0x4baf18
lea ecx, [esp + 0x14]
call fcn.0048480f
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x654], ebx
mov dword [0x4c3190], 0x12c
mov eax, dword [esi]
push ecx
push 0
mov ecx, esi
mov dword [esi + 0x78], 0x96
call dword [eax + 4]
jmp 0x4214cb
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4baee8
push ecx
call fcn.004827a3
add esp, 0x10
lea ecx, [esp + 0x3c]
push 0x4ba4c4
call fcn.0048241d
test eax, eax
jl 0x421442
mov edx, dword [esp + 0x1c8]
mov ecx, dword [esi + 0xb0]
mov eax, dword [edx + 0x20]
cmp eax, ecx
je 0x421442
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x421304
mov edx, dword [esi + 0xbc]
mov ecx, dword [esp + 0x10]
sub edx, eax
mov eax, dword [esi + 0x78]
shr edx, 1
add eax, edx
push ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 4]
jmp 0x4214cb
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4baed0
push ecx
call fcn.004827a3
add esp, 0x10
lea ecx, [esp + 0x3c]
push 0x4ba4c4
call fcn.0048241d
test eax, eax
jl 0x4214bd
mov edx, dword [ebx + 0x20]
mov eax, dword [esi + 0xb0]
cmp edx, eax
je 0x4214bd
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 1
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esi + 0xbc]
mov ebx, dword [esp + 0x70]
test ebx, ebx
mov dword [esp + 0x34], ecx
je 0x42160e
mov eax, dword [esi + 0x654]
test eax, eax
je 0x421504
mov eax, dword [esp + 0x30]
test eax, eax
je 0x42160e
mov eax, dword [0x4c3048]
test eax, eax
je 0x42160e
mov edx, dword [esp + 0x1c8]
mov ecx, 0x12
lea eax, [edx + 0x88]
mov dword [eax], 0
add eax, 0x48
dec ecx
jne 0x421516
mov edi, dword [esp + 0x1c8]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x174]
push ebx
push ecx
push edi
mov ecx, esi
call fcn.00414c60
test eax, eax
je 0x4215b8
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x18]
mov edi, 1
push 0x4baebc
push eax
mov dword [esp + 0x6c], edi
call fcn.004827a3
mov eax, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [esi + 0xbc]
cmp ecx, eax
jne 0x42159b
push 0x4baf18
lea ecx, [esp + 0x14]
call fcn.0048480f
mov eax, dword [esp + 0x10]
mov dword [esi + 0x654], edi
mov dword [0x4c3190], 0x12c
mov edx, dword [esi]
push eax
push 0
jmp 0x421609
mov ecx, dword [esi + 0xbc]
sub ecx, eax
mov eax, dword [esi + 0x78]
mov edx, dword [esi]
shr ecx, 1
add eax, ecx
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x10]
push eax
push 0
jmp 0x421609
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x4baea4
push eax
call fcn.004827a3
add esp, 0x10
lea ecx, [esp + 0x3c]
push 0x4ba4c4
call fcn.0048241d
test eax, eax
jl 0x421600
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0xb0]
cmp ecx, eax
je 0x421600
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x421638
mov ecx, dword [0x4c3118]
push ecx
mov ecx, esi
call fcn.00424260
mov edi, dword [esp + 0x58]
mov dword [esi + 0x6d4], eax
mov dword [esp + 0x54], 0
jmp 0x42165d
mov ecx, esi
call fcn.004242d0
mov ecx, esi
mov edi, eax
call fcn.0040d7c0
mov ecx, dword [esi + 0x6d4]
sub eax, edi
xor edx, edx
cmp eax, ecx
setge dl
mov edi, edx
mov dword [esp + 0x58], edi
mov bl, byte [esp + 0x28]
test bl, 0x10
je 0x421671
test edi, edi
je 0x421671
mov ecx, esi
call fcn.00425210
mov eax, dword [esp + 0x30]
test eax, eax
je 0x421a8b
test bl, 8
je 0x42190b
test edi, edi
je 0x42190b
push 1
mov ecx, esi
call fcn.00421ef0
push 0
mov ecx, esi
mov edi, eax
call fcn.00421ef0
mov ebx, eax
mov eax, dword [0x4c301c]
cmp edi, ebx
jne 0x4216c7
test eax, eax
je 0x4216c7
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add edx, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4217d2
test eax, eax
je 0x4216e9
lea eax, [ebx + ebx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x61c]
mov ecx, dword [eax + edx*8 + 0x3c]
jmp 0x4216f4
push 0
mov ecx, esi
call fcn.004255d0
mov ecx, eax
test ebx, ebx
je 0x4217d2
cmp dword [esp + 0x2c], ecx
jbe 0x4217d2
mov edx, dword [esi + 0x61c]
lea eax, [ebx + ebx*2]
lea ebp, [eax + eax*4]
shl ebp, 3
mov edi, dword [edx + ebp + 0x2c]
test edi, edi
je 0x4217d2
mov eax, dword [esi + 0xc0]
xor edx, edx
div edi
mov edi, eax
mov eax, dword [esp + 0x2c]
cmp edi, eax
jbe 0x421739
mov edi, eax
sub edi, ecx
test edi, edi
je 0x4217d2
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
push edi
push ebx
call fcn.00415b30
test eax, eax
je 0x4217a1
mov ecx, dword [esi + 0x61c]
lea eax, [esp + 0x10]
mov edx, dword [ecx + ebp + 0x10]
push edx
push edi
push 0x4bae90
push eax
call fcn.004827a3
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [ecx], 0
mov edx, dword [esi + 0x61c]
mov eax, dword [edx + ebp + 0x3c]
lea ebp, [edx + ebp + 0x3c]
add eax, edi
mov dword [ebp], eax
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
add ebx, edi
push ecx
mov dword [esi + 0x6c], ebx
push 0
jmp 0x4217cd
mov eax, dword [esi + 0x61c]
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax + ebp + 0x10]
push ecx
push edi
push 0x4bae78
push edx
call fcn.004827a3
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
add esp, 0x14
push ecx
push 1
mov ecx, esi
call dword [eax + 4]
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x4218ff
push 1
mov ecx, esi
call fcn.00421ef0
mov ebx, eax
mov eax, dword [0x4c301c]
test eax, eax
je 0x421804
lea eax, [ebx + ebx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x61c]
mov edi, dword [eax + edx*8 + 0x3c]
jmp 0x42181a
push 1
mov ecx, esi
call fcn.004255d0
push 0
mov ecx, esi
mov edi, eax
call fcn.004255d0
add edi, eax
test ebx, ebx
mov dword [esp + 0x1c], edi
je 0x4218ff
cmp ebp, edi
jbe 0x4218ff
mov ecx, dword [esi + 0x61c]
lea ebp, [ebx + ebx*2]
lea ebp, [ebp + ebp*4]
shl ebp, 3
mov ecx, dword [ecx + ebp + 0x2c]
test ecx, ecx
je 0x4218ff
mov eax, dword [esi + 0xc0]
xor edx, edx
div ecx
mov edi, eax
mov eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x421866
mov edi, eax
mov eax, dword [esp + 0x1c]
sub edi, eax
test edi, edi
je 0x4218ff
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
push edi
push ebx
call fcn.00415b30
test eax, eax
je 0x4218ce
mov eax, dword [esi + 0x61c]
lea edx, [esp + 0x10]
mov ecx, dword [eax + ebp + 0x10]
push ecx
push edi
push 0x4bae90
push edx
call fcn.004827a3
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [eax], 0
mov ecx, dword [esi + 0x61c]
mov ebx, dword [ecx + ebp + 0x3c]
lea ebp, [ecx + ebp + 0x3c]
add ebx, edi
mov dword [ebp], ebx
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0x10]
add edx, edi
mov dword [esi + 0x6c], edx
mov edx, dword [esi]
push eax
push 0
jmp 0x4218fa
mov edx, dword [esi + 0x61c]
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
mov eax, dword [edx + ebp + 0x10]
push eax
push edi
push 0x4bae78
push ecx
call fcn.004827a3
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
add esp, 0x14
push eax
push 1
mov ecx, esi
call dword [edx + 4]
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x58]
mov bl, byte [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add ecx, edx
test ecx, ecx
je 0x421a8b
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x421a8b
test bl, 1
je 0x421a8b
test edi, edi
je 0x421a8b
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea eax, [ecx + ecx*8]
mov edx, dword [ebp + eax*8]
lea eax, [ebp + eax*8]
test edx, edx
je 0x421a61
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x421a61
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00421f20
mov edi, eax
test edi, edi
je 0x421a6f
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
push eax
push edi
mov ecx, esi
call fcn.00415e90
test eax, eax
je 0x421a19
mov ecx, dword [esi + 0x61c]
lea eax, [edi + edi*2]
mov dword [esp + 0x54], 1
lea eax, [eax + eax*4]
shl eax, 3
mov edx, dword [eax + ecx + 0x3c]
lea ecx, [eax + ecx + 0x3c]
dec edx
mov dword [ecx], edx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esp + 0x14]
dec edx
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x61c]
inc ecx
mov eax, dword [eax + edx + 0x10]
lea edx, [esp + 0x10]
push eax
push ecx
push 0x4bae5c
push edx
call fcn.004827a3
add esp, 0x10
mov ecx, esi
mov dword [ebx], 0
call fcn.0040d7c0
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + ecx*8]
mov dword [ebp + ecx*8 + 0x18], eax
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*8]
mov dword [ebp + edx*8 + 0xc], edi
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*8]
mov dword [ebp + eax*8 + 8], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push 0
jmp 0x421a50
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*2]
push ecx
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x61c]
mov ecx, dword [eax + edx*8 + 0x10]
mov edx, dword [esp + 0x18]
inc edx
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x4bae3c
push eax
call fcn.004827a3
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
add esp, 0x14
push eax
push 1
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], 1
inc ecx
cmp ecx, 0x12
mov dword [esp + 0x14], ecx
jl 0x421943
mov eax, dword [esp + 0x54]
test eax, eax
je 0x421a8b
mov ecx, dword [0x4c3118]
push ecx
mov ecx, esi
call fcn.00424260
mov dword [esi + 0x6d4], eax
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x421aaf
mov eax, dword [esi + 0x654]
test eax, eax
je 0x421aaf
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x421aaf
mov dword [esi + 0x78], 0x96
mov edx, dword [esp + 0x7c]
mov eax, dword [esi + 0x78]
cmp edx, eax
je 0x421ac1
mov ecx, esi
call fcn.00424f20
lea ecx, [esp + 0x40]
mov byte [esp + 0x1c0], 0xd
call fcn.00484433
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c0], 3
call fcn.00484433
lea ecx, [esp + 0x74]
mov byte [esp + 0x1c0], 2
call fcn.00484433
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c0], 1
call fcn.00484433
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c0], 0
call fcn.00484433
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00484433
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x1b8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1b4
ret 4