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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x20]
xor eax, eax
push ebp
push 0x516693
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
add eax, 0x2c
push eax
mov eax, dword [esi]
add eax, 0x175
push eax
mov eax, dword [esi]
add eax, 0x24
push eax
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
mov eax, dword [esi]
lea ecx, [eax + 0x165]
mov eax, dword [esi]
lea edx, [eax + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
call fcn.005205dc
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x179]
mov dword [ebp - 0x78], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0xac]
test ebx, ebx
je 0x515bd5
lea edx, [ebp - 0x64]
mov eax, ebx
call fcn.005655d4
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
call fcn.00550d8c
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
call fcn.00550dc8
add ebx, eax
add ebx, dword [ebp - 0x60]
add ebx, dword [ebp - 0x58]
add dword [ebp - 0x78], ebx
jmp 0x515be6
push 0
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041a3b4
mov eax, dword [esi]
mov eax, dword [eax + 0x175]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
push eax
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
mov eax, dword [esi]
mov ebx, dword [eax + 0xac]
test ebx, ebx
je 0x515c29
cmp byte [ebp - 0x29], 0
jne 0x515c29
mov eax, ebx
call fcn.00550dc8
add eax, eax
add eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x5c]
add dword [ebp - 0x6c], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x54]
cmp dword [ebx + 0x38], 0
jne 0x515c5d
mov eax, dword [esi]
cmp dword [eax + 0xac], 0
je 0x515c4f
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x6c]
call fcn.00570560
mov dword [ebx + 0x38], eax
jmp 0x515c5d
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x6c]
call fcn.00570520
mov dword [ebx + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
xor ecx, ecx
call fcn.00550d38
mov edi, eax
mov dl, 1
mov eax, dword [esi]
call fcn.00514f4c
add edi, eax
mov ebx, dword [ebp - 0x60]
add edi, ebx
mov dword [ebp - 0x54], edi
cmp byte [ebp - 0x29], 0
je 0x515caa
mov eax, dword [ebp - 0x54]
inc eax
sub eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x5c]
mov edx, ebx
mov eax, dword [ebp - 0x64]
call fcn.0041a3b4
jmp 0x515cc5
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x5c]
mov edx, ebx
mov eax, dword [ebp - 0x64]
call fcn.0041a3b4
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x2d], 0
je 0x51667d
mov eax, dword [esi]
mov byte [eax + 0x164], 1
mov byte [ebp - 0x30], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x1c]
call fcn.0053fd98
test al, al
je 0x516674
mov eax, dword [esi]
cmp dword [eax + 0xac], 0
je 0x515d42
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x88]
cmp word [eax + 0x34], 1
je 0x515d46
xor eax, eax
jmp 0x515d48
mov al, 1
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x515da8
mov eax, dword [esi]
call fcn.005152d8
and eax, 0x7f
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.0041a38c
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
mov edi, dword [eax + 0x54]
mov eax, dword [edi + 0x38]
push eax
mov eax, edi
call fcn.005491b8
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xff00ff
mov ecx, dword [0x5955f4]
mov eax, dword [esi]
mov ebx, dword [eax + 0x54]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x1c]
call fcn.005688e4
jmp 0x515dee
mov eax, dword [esi]
call fcn.005152d8
and eax, 0x7f
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.0041a38c
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
push eax
push 0
push 0
push 0
mov edx, dword [0x5955f4]
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
xor ecx, ecx
call fcn.00569f7c
lea eax, [ebp - 0x40]
push eax
mov eax, dword [esi]
call fcn.00515548
push eax
mov eax, dword [esi]
call fcn.005154fc
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
pop ecx
call fcn.00567120
cmp byte [ebp - 0x21], 0
jne 0x515e1e
push ebp
call fcn.005155bc
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0xac], 0
je 0x516627
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
sub ebx, dword [ebp - 0x58]
dec ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
sub ebx, eax
jl 0x515e90
inc ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x74]
call fcn.0042e94c
mov edx, eax
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x70]
sub eax, ebx
jl 0x515e88
inc eax
mov byte [edx + ebx*4 + 3], 0xff
inc ebx
dec eax
jne 0x515e7f
inc dword [ebp - 0x74]
dec dword [ebp - 0x80]
jne 0x515e62
mov eax, dword [esi]
call fcn.005152d8
test al, al
je 0x515eb8
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x138]
mov edx, dword [esi]
mov edx, dword [edx + 0xac]
mov dword [edx + 0x24], eax
jmp 0x515ed3
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x13c]
mov edx, dword [esi]
mov edx, dword [edx + 0xac]
mov dword [edx + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x516627
cmp byte [ebp - 0x21], 0
je 0x5160ec
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov ebx, eax
movsx edi, word [ebx + 0x9a]
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041a3b4
lea eax, [ebp - 0x98]
push eax
imul eax, edi, 0xd
mov edx, dword [ebx + 0x8c]
movsx eax, word [edx + eax*4 + 0x32]
push eax
lea eax, [ebp - 0xa8]
push eax
imul eax, edi, 0xd
mov edx, dword [ebx + 0x8c]
movsx ecx, word [edx + eax*4 + 0x30]
imul eax, edi, 0xd
mov edx, dword [ebx + 0x8c]
movsx eax, word [edx + eax*4 + 0x2e]
push eax
imul eax, edi, 0xd
mov edx, dword [ebx + 0x8c]
movsx eax, word [edx + eax*4 + 0x2c]
pop edx
call fcn.0041a3b4
lea eax, [ebp - 0xa8]
push eax
push 0xff
lea eax, [ebp - 0xb8]
push eax
mov ecx, 0xff
mov edx, 0xff
mov eax, 0xff
call fcn.0041a3b4
lea eax, [ebp - 0xb8]
push eax
push 1
lea eax, [ebp - 0xc8]
push eax
mov ecx, 1
mov edx, 1
mov eax, 1
call fcn.0041a3b4
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x6c]
xor edx, edx
xor eax, eax
call fcn.0041a3b4
lea ecx, [ebp - 0xd8]
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0056a3a4
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x6c]
call fcn.00570560
mov dword [ebp - 0x1c], eax
push 0xcc0020
push 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0042e7dc
call fcn.00429b1c
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x6c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0042e7dc
call fcn.00429b1c
push eax
call sub.gdi32.dll_BitBlt
push ebp
call fcn.005155bc
pop ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
pop edx
call fcn.00430a98
mov ebx, eax
dec ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
mov dword [ebp - 0x70], eax
test ebx, ebx
jl 0x5160df
inc ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x1c]
call fcn.0042e94c
mov dword [ebp - 0x7c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x74]
call fcn.0042e94c
mov edx, eax
mov eax, dword [ebp - 0x70]
test eax, eax
jl 0x5160d7
inc eax
xor ebx, ebx
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ecx + ebx*4]
cmp ecx, dword [edx + ebx*4]
je 0x5160d3
mov byte [edx + ebx*4 + 3], 0xff
inc ebx
dec eax
jne 0x5160c3
inc dword [ebp - 0x74]
dec dword [ebp - 0x80]
jne 0x516099
mov eax, dword [ebp - 0x1c]
call fcn.0040366c
jmp 0x516627
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041a3b4
lea eax, [ebp - 0x98]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x88]
movsx eax, word [eax + 0x30]
add eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x88]
movsx eax, word [eax + 0x30]
add eax, dword [ebp - 0x5c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x88]
movsx eax, word [eax + 0x30]
add eax, dword [ebp - 0x60]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x88]
movsx eax, word [eax + 0x30]
add eax, dword [ebp - 0x64]
pop edx
pop ecx
call fcn.0041a3b4
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x64]
push eax
push 1
lea eax, [ebp - 0xb8]
push eax
mov ecx, 1
mov edx, 1
mov eax, 1
call fcn.0041a3b4
lea eax, [ebp - 0xb8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x6c]
xor edx, edx
xor eax, eax
call fcn.0041a3b4
lea ecx, [ebp - 0xc8]
mov edx, ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0056a3a4
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [ebp - 0x28]
call fcn.0053fd74
test al, al
je 0x516223
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov eax, dword [eax + 0x94]
imul edx, dword [ebp - 0x28], 0x23
mov eax, dword [eax + edx*4 + 0x78]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [ebp - 0x28]
call fcn.0053fd74
test al, al
je 0x516354
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [ebp - 0x28]
call fcn.005461cc
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [ebp - 0x28]
call fcn.00546214
add eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [ebp - 0x28]
call fcn.00546168
mov ecx, eax
add ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
call fcn.0041a3b4
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi]
mov edi, dword [eax + 0x54]
mov eax, edi
call fcn.005491b8
push eax
push 0xd
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov edx, dword [eax + 0x24]
mov eax, dword [edi + 0x38]
call fcn.0051ad2c
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [ebp - 0x28]
call fcn.00546214
add eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
sub eax, ebx
mov edx, dword [ebp - 0x60]
pop ecx
call fcn.0041a3b4
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov edi, dword [eax + 0x24]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
sub eax, ebx
lea ecx, [ebp - 0x88]
mov edx, dword [ebp - 0x60]
call fcn.0041a38c
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
push eax
push 0xe
lea ecx, [ebp - 0x10]
mov edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0051ad2c
jmp 0x516493
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x18]
call fcn.005461cc
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x18]
call fcn.00546214
mov edx, 8
call fcn.00430a98
add eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x18]
call fcn.00546168
mov edx, 8
call fcn.00430a98
mov ecx, eax
add ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
call fcn.0041a3b4
lea eax, [ebp - 0x64]
push eax
mov eax, dword [esi]
mov edi, dword [eax + 0x54]
mov eax, dword [edi + 0x18]
push eax
mov eax, edi
call fcn.005491b8
push eax
push 0xd
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov edx, dword [eax + 0x24]
mov eax, dword [edi + 0x38]
call fcn.0051ad2c
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x18]
call fcn.00546214
add eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
sub eax, ebx
mov edx, dword [ebp - 0x60]
pop ecx
call fcn.0041a3b4
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov edi, dword [eax + 0x24]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
sub eax, ebx
lea ecx, [ebp - 0x88]
mov edx, dword [ebp - 0x60]
call fcn.0041a38c
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
push eax
push 0xe
lea ecx, [ebp - 0x10]
mov edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0051ad2c
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x18]
call fcn.00546120
mov dword [ebp - 0x74], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x18]
call fcn.005461cc
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
mov edx, dword [edx + 0x18]
call fcn.00546168
add eax, dword [ebp - 0x64]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x64]
pop ecx
call fcn.0041a3b4
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov edi, dword [eax + 0x24]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
sub edx, dword [ebp - 0x58]
sub edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x88]
mov eax, dword [ebp - 0x64]
call fcn.0041a38c
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
push eax
push 0x10
lea ecx, [ebp - 0x10]
mov edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0051ad2c
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x74]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
sub eax, ebx
pop edx
pop ecx
call fcn.0041a3b4
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x74]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0xac]
mov edi, dword [eax + 0x24]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 0x5c]
sub eax, ebx
lea ecx, [ebp - 0x88]
pop edx
call fcn.0041a38c
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
call fcn.005491b8
push eax
push 0x11
lea ecx, [ebp - 0x10]
mov edx, edi
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0051ad2c
mov eax, dword [esi]
mov ebx, dword [eax + 0x54]
mov eax, ebx
call fcn.005491b8
mov edx, eax
mov eax, dword [ebx + 0x18]
call fcn.00550fac
test al, al
je 0x516660
mov eax, dword [esi]
mov edi, dword [eax + 0x180]
test edi, edi
je 0x516659
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, dword [ebp - 0x6c]
je 0x516660
mov eax, dword [esi]
call fcn.00515434
mov dl, 1
mov eax, dword [esi]
call fcn.00514f4c
test eax, eax
je 0x516674
mov eax, dword [esi]
call fcn.00516874
mov eax, dword [esi]
mov eax, dword [eax + 0x54]
mov byte [eax + 0x2d], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51669a
lea eax, [ebp - 0x68]
call fcn.00404580
ret