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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x5c4008]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x70ac9b
mov dword [esp + 0x54], esi
mov dword [esp + 0x3c], ebx
call fcn.0056b0a5
mov ecx, dword [ebx + 0x3258]
mov eax, dword [ebx + 0x1a50]
mov edx, dword [ebx + 0x1000]
add eax, ecx
mov dword [esp + 0x78], eax
mov eax, 1
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x30ac]
shl eax, cl
mov ecx, dword [ebx + 0x1004]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xb8], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xbc], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xc0], eax
mov eax, dword [ecx + 0x70]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x84], ecx
mov ecx, dword [ebx + 0x1008]
mov dword [esp + 0x88], edx
mov dword [esp + 0x9c], 0
mov dword [esp + 0x10], edi
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xc4], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xc8], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xcc], eax
mov eax, dword [ecx + 0x70]
mov ecx, dword [ebx + 0x100c]
mov dword [esp + 0xa4], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0xd0], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xd4], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xd8], eax
mov eax, dword [ecx + 0x70]
mov dword [esp + 0xa8], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0x3c]
mov edx, edi
mov dword [esp + 0x38], eax
xor eax, eax
test edi, edi
setne al
mov dword [esi + 0xc1c], eax
mov eax, dword [ebx + 0x1a54]
imul eax, edi
imul eax, eax, 0x4c
add eax, dword [ebx + 0x1a84]
mov dword [esi + 0xc10], eax
mov eax, dword [ebx + 0x1a54]
mov dword [esi + 0xc14], eax
mov ecx, dword [ebx + 0x1a4c]
cmp edx, ecx
jge 0x539f96
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x7c], eax
mov eax, edi
mov dword [esp + 0x68], edi
cdq
idiv dword [esp + 0x74]
lea eax, [edx*8]
sub eax, edx
lea edx, [edi*4]
add eax, 0xc34
lea eax, [ebx + eax*4]
mov dword [esi + 0xc90], eax
mov ecx, dword [ebx + 0x325c]
add ecx, edx
mov dword [esp + 0x4c], ecx
test edi, edi
jle 0x539325
lea eax, [ecx - 4]
jmp 0x53932d
lea eax, [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x64], eax
xorps xmm0, xmm0
mov eax, edi
imul eax, dword [esp + 0x1c]
shl eax, 4
mov dword [esp + 0x44], eax
mov eax, edi
imul eax, dword [esp + 0x18]
shl eax, 3
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x27e4]
mov dword [esi + 0xc44], eax
mov eax, dword [esi + 0xc48]
movq qword [eax], xmm0
mov byte [eax + 8], 0
mov eax, edi
neg eax
mov dword [esi + 0xc20], 0
shl eax, 7
mov dword [esi + 0xc78], eax
mov eax, dword [ebx + 0x1a4c]
sub eax, edi
dec eax
shl eax, 7
mov dword [esi + 0xc7c], eax
cmp dword [ebx + 0x27b0], 0
je 0x539418
mov eax, dword [ebx + 0x3260]
mov eax, dword [eax + edx]
add eax, 0x20
mov dword [esi + 0xc24], eax
mov eax, dword [ebx + 0x3264]
mov eax, dword [eax + edx]
add eax, 0x10
mov dword [esi + 0xc28], eax
mov eax, dword [ebx + 0x3268]
mov eax, dword [eax + edx]
add eax, 0x10
mov dword [esi + 0xc2c], eax
mov eax, dword [ebx + 0x326c]
mov eax, dword [edx + eax]
mov dword [esi + 0xc30], eax
mov eax, dword [ebx + 0x3270]
mov eax, dword [edx + eax]
mov dword [esi + 0xc34], eax
mov eax, dword [ebx + 0x3274]
mov eax, dword [edx + eax]
mov dword [esi + 0xc38], eax
mov dword [esi + 0xc3c], 1
mov dword [esi + 0xc40], 1
jmp 0x539575
mov edx, dword [esp + 0x60]
add edx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x70]
mov edi, dword [esp + 0x38]
add edi, dword [esp + 0x20]
lea ebx, [edx - 1]
mov dword [esi + 0xc34], ebx
mov dword [esi + 0xc24], eax
lea ecx, [eax - 1]
mov dword [esi + 0xc2c], edi
mov dword [esi + 0xc28], edx
lea ebx, [edi - 1]
mov dword [esi + 0xc30], ecx
mov dword [esi + 0xc38], ebx
sub eax, dword [esi + 0xba8]
mov dword [esi + 0xc24], eax
mov eax, edx
sub eax, dword [esi + 0xbbc]
mov dword [esi + 0xc28], eax
sub edi, dword [esi + 0xbbc]
mov dword [esi + 0xc2c], edi
mov eax, dword [esi + 0xba8]
mov dword [esi + 0xc3c], eax
mov eax, dword [esi + 0xbbc]
mov dword [esi + 0xc40], eax
mov edi, dword [esi + 0xba8]
mov eax, dword [esi + 0xbbc]
mov dword [esp + 0x2c], edi
mov edi, 0x10
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], eax
nop dword [eax + eax]
mov byte [ecx], 0x81
add ecx, dword [esp + 0x2c]
sub edi, 1
jne 0x5394c0
mov esi, dword [esp + 0x20]
lea edi, [eax + eax*2]
add esi, dword [esp + 0x60]
lea ecx, [eax + eax*2]
mov byte [edx - 1], 0x81
add ecx, ecx
mov byte [eax + edx - 1], 0x81
mov byte [edx + eax*2 - 1], 0x81
mov byte [edi + edx - 1], 0x81
mov edi, dword [esp + 0x20]
add edi, dword [esp + 0x60]
mov byte [edx + eax*4 - 1], 0x81
lea edx, [eax + eax*4]
mov byte [edx + esi - 1], 0x81
mov edx, dword [esp + 0x50]
mov byte [ecx + esi - 1], 0x81
mov esi, dword [esp + 0x34]
shl eax, 3
sub eax, esi
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ecx
mov byte [eax + edi - 1], 0x81
mov edi, dword [esp + 0x38]
add edi, dword [esp + 0x20]
mov byte [edx], 0x81
mov edx, dword [esp + 0x38]
add edx, dword [esp + 0x20]
mov byte [esi + edi - 1], 0x81
mov byte [edi + esi*2 - 1], 0x81
lea edi, [esi + esi*2]
mov byte [edi + edx - 1], 0x81
mov edi, esi
mov esi, dword [esp + 0x38]
add esi, dword [esp + 0x20]
lea edx, [edi + edi*4]
mov byte [esi + edi*4 - 1], 0x81
mov edi, dword [esp + 0x10]
mov byte [edx + esi - 1], 0x81
mov byte [ecx + esi - 1], 0x81
mov ecx, dword [esp + 0x4c]
mov byte [eax + esi - 1], 0x81
mov esi, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [ebx + 0x1a50], eax
jle 0x539dd7
mov edx, dword [esp + 0x20]
add edx, dword [esp + 0x38]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x60]
sub edx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x50], 0x20
mov dword [esp + 0x80], edx
nop word [eax + eax]
dec eax
mov dword [esp + 0x2c], eax
cdq
idiv dword [esp + 0x48]
test edx, edx
jne 0x5395d4
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
test edi, edi
je 0x539623
mov edx, dword [esp + 0x48]
lea eax, [edx - 1]
test ecx, eax
jne 0x539623
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
sub eax, edx
cmp ecx, eax
jle 0x539623
mov ebx, dword [esp + 0x64]
mov esi, ecx
mov edi, edx
nop dword [eax + eax]
pause
push 0
call dword [esp + 0x80]
mov eax, dword [ebx]
sub eax, edi
cmp esi, eax
jg 0x539600
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc70], eax
mov eax, dword [ebx + 0x1a50]
sub eax, ecx
dec eax
shl eax, 7
mov dword [esi + 0xc74], eax
cmp dword [ebx + 0x32b4], 0
jne 0x539651
cmp dword [ebx + 0x32b8], 0
jne 0x539668
mov eax, dword [esi + 0xc90]
mov eax, dword [eax + 0xc]
sub eax, 0x21
cmp eax, 0x3fffffde
jbe 0x539668
xor edx, edx
jmp 0x53966d
mov edx, 1
cmp dword [ebx + 0x32ac], 0
je 0x53969f
mov eax, dword [esi + 0xc10]
cmp byte [eax + 2], 0
jne 0x53969f
test edx, edx
je 0x53969f
push dword [ebx + 0x1a50]
mov edx, edi
push dword [ebx + 0x1a4c]
push ecx
mov ecx, esi
call fcn.00538180
add esp, 0xc
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0xbcc], eax
mov eax, dword [esp + 0x80]
add eax, ecx
mov dword [esi + 0xbd4], ecx
mov dword [esi + 0xbd0], eax
mov eax, dword [esi + 0xc10]
movzx eax, byte [eax + 2]
mov eax, dword [esp + eax*4 + 0x9c]
or dword [esi + 0xc94], eax
je 0x53973a
cmp edi, dword [ebx + 0x1a4c]
jge 0x539724
mov ecx, dword [esp + 0x48]
nop dword [eax + eax]
mov esi, dword [ebx + 0x325c]
lea eax, [edi*4]
add esi, eax
inc edi
mov eax, dword [ebx + 0x1a50]
add eax, ecx
mov dword [esp + 0x4c], esi
mov dword [esi], eax
add edi, dword [ebx + 0x3240]
cmp edi, dword [ebx + 0x1a4c]
jl 0x5396f0
mov esi, dword [esp + 0x54]
mov dword [esp + 0x10], edi
push str.Corrupted_reference_frame
lea eax, [esi + 0xc98]
push 7
push eax
call fcn.005359f0
add esp, 0xc
mov eax, dword [esi + 0xc10]
mov al, byte [eax + 2]
cmp al, 1
jb 0x539770
movzx eax, al
lea eax, [eax + eax*2]
mov ecx, dword [esp + eax*4 + 0xb4]
mov edx, dword [esp + eax*4 + 0xb0]
mov eax, dword [esp + eax*4 + 0xac]
add ecx, dword [esp + 0x20]
add edx, dword [esp + 0x20]
add eax, dword [esp + 0x44]
jmp 0x539776
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [esi + 0xb54], eax
mov dword [esi + 0xb58], edx
mov edx, esi
mov dword [esi + 0xb5c], ecx
push ecx
mov ecx, ebx
call fcn.00538cf0
mov eax, dword [esi + 0xc90]
add esp, 4
mov dword [esi + 0xc20], 1
mov ecx, 0x3fffffde
mov eax, dword [eax + 0xc]
sub eax, 0x21
cmp ecx, eax
sbb eax, eax
inc eax
or dword [esi + 0xc94], eax
add dword [esi + 0xc24], 0x10
add dword [esi + 0xc28], 8
add dword [esi + 0xc2c], 8
mov eax, dword [ebx + 0x27b0]
test eax, eax
jne 0x5397fd
add dword [esi + 0xc30], 0x10
add dword [esi + 0xc34], 8
add dword [esi + 0xc38], 8
mov eax, dword [ebx + 0x27b0]
test eax, eax
je 0x539d92
mov eax, dword [esi + 0xc10]
mov dl, byte [eax]
cmp dl, 4
je 0x53981d
cmp dl, 9
je 0x53981d
cmp byte [eax + 9], 0
mov dword [esp + 0x40], 1
jne 0x539825
mov dword [esp + 0x40], 0
movzx ecx, byte [eax + 0xb]
movzx eax, byte [eax + 2]
lea ecx, [eax + ecx*4]
movzx eax, dl
lea edx, [ebx + 0x1aa0]
movzx eax, byte [eax + edx + 0xd00]
add eax, edx
movzx ecx, byte [eax + ecx*4 + 0xc40]
mov eax, dword [ebx + 0x1a4c]
mov dword [esp + 0x2c], ecx
dec eax
lea ecx, [edi*4]
mov dword [esp + 0x14], ecx
cmp edi, eax
je 0x5398f9
mov eax, dword [ebx + 0x3260]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
shl ecx, 4
sub ecx, dword [esp + 0x1c]
add ecx, dword [esi + 0xbcc]
mov eax, dword [eax + edx + 4]
add eax, dword [esp + 0x50]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xbd0]
lea edi, [eax*8]
sub edi, eax
mov eax, dword [ebx + 0x3264]
mov ebx, dword [esp + 0x30]
mov edx, dword [eax + edx + 4]
mov eax, dword [ecx + edi]
mov dword [edx + ebx], eax
mov eax, dword [ecx + edi + 4]
mov ecx, ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + ecx + 4], eax
mov eax, dword [ebx + 0x3268]
mov ecx, dword [esi + 0xbd4]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov edx, dword [eax + edx + 4]
mov eax, dword [edi + ecx]
mov dword [edx + ebx], eax
mov eax, dword [edi + ecx + 4]
mov ecx, ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + ecx + 4], eax
mov ecx, dword [esp + 0x14]
jmp 0x5398fd
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1a50]
mov edx, dword [esp + 0x24]
dec eax
mov edi, dword [esi + 0xc10]
cmp edx, eax
je 0x539bb0
cmp byte [edi + 0x4e], 0
jne 0x539bb0
mov edx, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x28], edi
lea eax, [edx + edx*2]
mov dword [esp + 0x58], eax
lea eax, [edx + edx]
mov dword [esp + 0x6c], eax
jmp 0x539944
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x326c]
mov edx, dword [esi + 0xbcc]
mov ecx, dword [ecx + eax]
mov eax, dword [esp + 0x28]
movzx eax, byte [edx + eax + 0xf]
mov byte [edi + ecx], al
mov eax, dword [ebx + 0x326c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xbcc]
add edx, dword [esp + 0x28]
mov ecx, dword [ecx + eax]
mov eax, dword [esp + 0x1c]
movzx eax, byte [edx + eax + 0xf]
mov byte [ecx + edi + 1], al
mov eax, dword [ebx + 0x326c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xbcc]
mov ecx, dword [ecx + eax]
mov eax, dword [esp + 0x6c]
movzx eax, byte [edx + eax + 0xf]
mov byte [ecx + edi + 2], al
mov eax, dword [ebx + 0x326c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xbcc]
mov ecx, dword [ecx + eax]
mov eax, dword [esp + 0x58]
movzx eax, byte [edx + eax + 0xf]
mov byte [ecx + edi + 3], al
add edi, 4
mov ecx, dword [esp + 0x1c]
lea eax, [ecx*4]
add dword [esp + 0x28], eax
add dword [esp + 0x6c], eax
add dword [esp + 0x58], eax
cmp edi, 0x10
jl 0x539940
mov eax, dword [ebx + 0x3270]
mov edx, dword [esi + 0xbd0]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + eax]
movzx eax, byte [edx + 7]
mov byte [ecx], al
mov eax, dword [ebx + 0x3274]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [edi + eax]
movzx eax, byte [edx + 7]
mov byte [ecx], al
mov eax, dword [ebx + 0x3270]
mov edx, dword [esi + 0xbd0]
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x18]
movzx eax, byte [edx + eax + 7]
mov byte [ecx + 1], al
mov eax, dword [ebx + 0x3274]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + edx + 7]
mov byte [ecx + 1], al
mov eax, dword [ebx + 0x3270]
mov edx, dword [esi + 0xbd0]
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x18]
movzx eax, byte [edx + eax*2 + 7]
mov byte [ecx + 2], al
mov eax, dword [ebx + 0x3274]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [edi + eax]
mov edi, dword [esp + 0x18]
movzx eax, byte [edx + edi*2 + 7]
lea edi, [edi + edi*2]
mov byte [ecx + 2], al
mov eax, dword [ebx + 0x3270]
mov edx, dword [esi + 0xbd0]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + eax]
movzx eax, byte [edx + edi + 7]
mov byte [ecx + 3], al
mov eax, dword [ebx + 0x3274]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + eax]
movzx eax, byte [edi + edx + 7]
mov edi, dword [esp + 0x14]
mov byte [ecx + 3], al
mov eax, dword [ebx + 0x3270]
mov edx, dword [esi + 0xbd0]
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x18]
movzx eax, byte [edx + eax*4 + 7]
mov byte [ecx + 4], al
mov eax, dword [ebx + 0x3274]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [edi + eax]
mov edi, dword [esp + 0x18]
movzx eax, byte [edx + edi*4 + 7]
lea edi, [edi + edi*4]
mov byte [ecx + 4], al
mov eax, dword [ebx + 0x3270]
mov edx, dword [esi + 0xbd0]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + eax]
movzx eax, byte [edx + edi + 7]
mov byte [ecx + 5], al
mov eax, dword [ebx + 0x3274]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [ecx + eax]
movzx eax, byte [edi + edx + 7]
mov byte [ecx + 5], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xbd0]
lea edi, [eax + eax*2]
mov eax, dword [ebx + 0x3270]
mov ecx, dword [ecx + eax]
movzx eax, byte [edx + edi*2 + 7]
mov byte [ecx + 6], al
mov eax, dword [ebx + 0x3274]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + eax]
movzx eax, byte [edx + edi*2 + 7]
mov byte [ecx + 6], al
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0xbd0]
mov ecx, dword [esp + 0x14]
lea edi, [eax*8]
sub edi, eax
mov eax, dword [ebx + 0x3270]
mov ecx, dword [ecx + eax]
movzx eax, byte [edx + edi + 7]
mov byte [ecx + 7], al
mov eax, dword [ebx + 0x3274]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xbd4]
mov ecx, dword [ecx + eax]
movzx eax, byte [edi + edx + 7]
mov edx, dword [esp + 0x24]
mov byte [ecx + 7], al
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x539d8e
mov ecx, eax
shl ecx, 4
cmp dword [ebx + 0x1a94], 0
mov dword [esp + 0x28], ecx
jne 0x539cf4
lea edi, [ebx + 0x1aa0]
lea eax, [edi + ecx]
mov dword [esp + 0x8c], eax
lea eax, [ecx + 0x400]
add eax, edi
mov dword [esp + 0x90], eax
lea eax, [ecx + 0x800]
mov ecx, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x1a3c]
add eax, 0x32
shl eax, 6
add eax, edi
movzx eax, byte [eax + ecx]
add eax, 0xc0
shl eax, 4
add eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x98], eax
test edx, edx
jle 0x539c57
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi + 0xbd4]
push dword [esi + 0xbd0]
push dword [esi + 0xbcc]
call dword [0x708848]
add esp, 0x18
cmp dword [esp + 0x40], 0
jne 0x539c86
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi + 0xbd4]
push dword [esi + 0xbd0]
push dword [esi + 0xbcc]
call dword [0x70883c]
add esp, 0x18
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x539cb9
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esi + 0xbd4]
push dword [esi + 0xbd0]
push dword [esi + 0xbcc]
call dword [0x708838]
add esp, 0x18
cmp dword [esp + 0x40], 0
jne 0x539d92
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esi + 0xbd4]
push dword [esi + 0xbd0]
push dword [esi + 0xbcc]
call dword [0x70887c]
add esp, 0x18
jmp 0x539d92
mov edi, dword [esp + 0x1c]
test edx, edx
jle 0x539d1b
lea eax, [ecx + 0x1aa0]
add eax, ebx
push eax
push edi
push dword [esi + 0xbcc]
call dword [0x708864]
mov ecx, dword [esp + 0x34]
add esp, 0xc
jmp 0x539d1f
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x40], 0
jne 0x539d3f
lea eax, [ecx + 0x1ea0]
add eax, ebx
push eax
push edi
push dword [esi + 0xbcc]
call dword [0x70886c]
add esp, 0xc
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x539d66
mov eax, dword [esp + 0x28]
add eax, 0x1aa0
add eax, ebx
push eax
push dword [esp + 0x20]
push dword [esi + 0xbcc]
call dword [0x708874]
add esp, 0xc
cmp dword [esp + 0x40], 0
jne 0x539d92
mov eax, dword [esp + 0x28]
add eax, 0x1ea0
add eax, ebx
push eax
push dword [esp + 0x20]
push dword [esi + 0xbcc]
call dword [0x7088ac]
add esp, 0xc
jmp 0x539d92
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add dword [esp + 0x44], 0x10
inc eax
add dword [esp + 0x20], 8
add dword [esp + 0x5c], 8
add dword [esi + 0xc10], 0x4c
add dword [esi + 0xc44], 9
add dword [esp + 0x50], 0x10
add dword [esp + 0x30], 8
add dword [esp + 0x34], 0xffffff80
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
cmp eax, dword [ebx + 0x1a50]
jl 0x5395c0
cmp dword [ebx + 0x27b0], 0
je 0x539f14
mov eax, dword [ebx + 0x1a4c]
dec eax
cmp edi, eax
je 0x539f40
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
mov edi, dword [eax]
mov eax, dword [ebx + 0x3260]
lea edx, [edi + 0x20]
sar edi, 1
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edx - 1]
mov byte [ecx + edx], al
mov eax, dword [ebx + 0x3264]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x10], al
mov eax, dword [ebx + 0x3268]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x10], al
mov eax, dword [ebx + 0x3260]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edx - 1]
mov byte [ecx + edx + 1], al
mov eax, dword [ebx + 0x3264]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x11], al
mov eax, dword [ebx + 0x3268]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x11], al
mov eax, dword [ebx + 0x3260]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edx - 1]
mov byte [ecx + edx + 2], al
mov eax, dword [ebx + 0x3264]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x12], al
mov eax, dword [ebx + 0x3268]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x12], al
mov eax, dword [ebx + 0x3260]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx*4 + 4]
movzx eax, byte [ecx + edx - 1]
mov byte [ecx + edx + 3], al
mov eax, dword [ebx + 0x3264]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + edx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x13], al
mov eax, dword [ebx + 0x3268]
mov ecx, dword [eax + edx*4 + 4]
movzx eax, byte [ecx + edi + 0xf]
mov byte [ecx + edi + 0x13], al
mov edi, edx
jmp 0x539f40
mov eax, dword [esi + 0xbd4]
mov edx, dword [esi + 0xbcc]
add eax, 8
mov ecx, dword [esp + 0x88]
add edx, 0x10
push eax
mov eax, dword [esi + 0xbd0]
add eax, 8
push eax
call fcn.00545f70
add esp, 8
mov ecx, dword [esp + 0x4c]
inc edi
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x24]
mov dword [ecx], eax
add dword [esi + 0xc10], 0x4c
mov dword [esi + 0xc1c], 1
mov eax, dword [ebx + 0x3240]
imul eax, dword [esi + 0xc14]
imul eax, eax, 0x4c
add dword [esi + 0xc10], eax
mov eax, dword [ebx + 0x3240]
add edi, eax
mov ecx, dword [ebx + 0x1a4c]
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x5392e7
mov edx, dword [esp + 0x68]
jmp 0x539f9c
mov eax, dword [ebx + 0x3240]
inc eax
add eax, edx
cmp eax, ecx
jl 0x539fb3
push 0
push 1
push dword [ebx + 0x3288]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551170
mov esp, ebp
pop ebp
ret