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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x515821
sub esp, 0xa8
mov byte [esp + 0xcc], 0
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov byte [esp + 0x46], 0
mov byte [esp + 0x47], 0
lea eax, [esp + 0x90]
mov dword [esp], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.0050f2a0
movzx eax, byte [esp + 0xc]
test al, al
je 0x515817
mov eax, dword [esp + 0x94]
test eax, eax
je 0x5157e6
mov eax, 1
test al, al
je 0x5157b5
mov eax, 1
test al, al
je 0x51538b
lea eax, [0x53ff20]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x27
lea ecx, [0x563d54]
mov dword [eax], ecx
mov byte [esp + 0xcc], 0
lea ecx, [0x58a9f0]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
add esp, 0xa8
ret
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x515347
movzx eax, byte [esp + 0x46]
test al, al
je 0x5157a3
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x5153fa
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x5153fa
lea eax, [0x53ff20]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x26
lea ecx, [0x563a99]
mov dword [eax], ecx
mov byte [esp + 0xcc], 0
lea ecx, [0x58a9f0]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
add esp, 0xa8
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea eax, [0x51b620]
mov dword [esp + 0x70], eax
lea eax, [esp + 0xcc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x8c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x70]
call eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], ecx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x58], ebx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x6c], ebp
mov esi, dword [esp + 0x28]
mov dword [esp + 0x54], esi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x68], edi
mov edx, eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x64], edi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0xac]
mov dword [edi + 0x234], ecx
mov dword [edi + 0x238], esi
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x515783
mov dword [edi + 0x230], ebx
mov dword [edi + 0x24c], ebp
mov dword [edi + 0x250], eax
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x515767
mov ecx, dword [esp + 0x64]
mov dword [edi + 0x248], ecx
mov ecx, dword [esp + 0x54]
mov dword [edi + 0x264], ecx
mov ecx, dword [esp + 0x50]
mov dword [edi + 0x268], ecx
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x51574b
mov ecx, dword [esp + 0x68]
mov dword [edi + 0x260], ecx
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x27c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edi + 0x280], ecx
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x51572f
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x278], eax
test edx, edx
jne 0x51570e
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x70]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov edx, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0xac]
mov dword [ebp + 0x240], ecx
mov dword [ebp + 0x244], ebx
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x5156f8
mov dword [ebp + 0x23c], eax
mov dword [ebp + 0x258], esi
mov dword [ebp + 0x25c], edi
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x5156e6
mov dword [ebp + 0x254], edx
mov ecx, dword [esp + 0x5c]
mov dword [ebp + 0x270], ecx
mov ecx, dword [esp + 0x58]
mov dword [ebp + 0x274], ecx
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x5156d2
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0x26c], ecx
mov ecx, dword [esp + 0x54]
mov dword [ebp + 0x288], ecx
mov ecx, dword [esp + 0x50]
mov dword [ebp + 0x28c], ecx
mov ecx, dword [0x67bf10]
test ecx, ecx
jne 0x5156c1
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x284], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x515696
mov byte [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xd4], eax
add esp, 0xa8
ret
movzx eax, byte [esp + 0xbc]
mov byte [ebp + 0x22c], al
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xa8
ret
lea edi, [ebp + 0x284]
mov eax, dword [esp + 0x68]
call fcn.00455bf0
jmp 0x51566d
lea edi, [ebp + 0x26c]
mov eax, dword [esp + 0x6c]
call fcn.00455bf0
jmp 0x515645
lea edi, [ebp + 0x254]
mov eax, edx
call fcn.00455bf0
jmp 0x515619
lea ecx, [ebp + 0x23c]
mov ebx, edi
mov edi, ecx
call fcn.00455bf0
mov edi, ebx
jmp 0x5155f9
mov byte [esp + 0xcc], 0
mov dword [esp + 0xd0], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 0xd4], eax
add esp, 0xa8
ret
lea ecx, [edi + 0x278]
mov eax, edi
mov edi, ecx
mov ebx, eax
mov eax, dword [esp + 0x6c]
call fcn.00455bf0
mov edi, ebx
jmp 0x515546
lea ecx, [edi + 0x260]
mov eax, edi
mov edi, ecx
mov ebx, eax
mov eax, dword [esp + 0x68]
call fcn.00455bf0
mov edi, ebx
jmp 0x51551a
lea ecx, [edi + 0x248]
mov eax, edi
mov edi, ecx
mov ebx, eax
mov eax, dword [esp + 0x64]
call fcn.00455bf0
mov edi, ebx
jmp 0x5154ee
mov dword [esp + 0x48], eax
lea ecx, [edi + 0x230]
mov esi, edi
mov edi, ecx
mov eax, ebx
call fcn.00455bf0
mov eax, dword [esp + 0x48]
mov edi, esi
jmp 0x5154ca
movzx eax, byte [esp + 0x47]
test al, al
jne 0x5153a0
jmp 0x5153b6
lea eax, [esp + 0x78]
mov dword [esp], eax
lea eax, [esp + 0x9c]
mov dword [esp + 4], eax
lea eax, [esp + 0x47]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0xa1
call fcn.0050f310
movzx eax, byte [esp + 0x10]
xor eax, 1
jmp 0x515343
lea eax, [esp + 0x78]
mov dword [esp], eax
lea ecx, [esp + 0x84]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x46]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0xa0
call fcn.0050f310
movzx eax, byte [esp + 0x10]
xor eax, 1
jmp 0x515336
mov eax, 1
jmp 0x515336
call fcn.004543b0
jmp fcn.00515240