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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x70]
push edx
mov eax, dword [eax + 0x7c]
push eax
call fcn.005228f0
add esp, 0x10
mov bx, word [ebp - 0x208]
mov ax, word [ebp - 0x206]
mov word [ebp - 0x402], ax
mov ax, word [ebp - 0x204]
mov word [ebp - 0x404], ax
mov ax, word [ebp - 0x202]
mov word [ebp - 0x406], ax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x400]
mov dword [eax + 0x74], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x410], edx
test edx, edx
je 0x5269b4
mov ecx, edx
and ecx, 0x1ff
jne 0x5269b4
push 2
push dword [0x6bbf90]
push dword [0x6bbf8c]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 8]
push eax
call fcn.004b04b0
add esp, 0x10
mov ecx, dword [ebp - 0x410]
mov esi, ecx
xor edi, edi
push edi
push esi
push edx
push eax
call fcn.00531ee0
jae 0x5269b4
movzx eax, word [ebp - 0x3f4]
cmp eax, 0xf0
jg 0x5269b4
movzx eax, bx
movzx edx, word [ebp - 0x402]
add eax, edx
cmp eax, 0x200
jg 0x5269b4
movzx eax, word [ebp - 0x404]
movzx edx, word [ebp - 0x406]
add eax, edx
cmp eax, 0x200
jle 0x5269c3
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], 0
jmp 0x526d81
push 0x100
call fcn.0049b580
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
push 0xff
lea eax, [ebp - 0x200]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.004aa8d0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dx, word [ebp - 0x3f4]
mov word [eax + 0x16], dx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, 0x1f4
mov ecx, dword [ebp - 0x414]
movzx ecx, word [ecx + 0x16]
lea ecx, [ecx + 8]
cdq
idiv ecx
mov edx, dword [ebp - 0x414]
mov word [edx + 0x78], ax
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 0x3f2]
mov byte [eax + 0x1b], dl
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0x1b]
and edx, 1
je 0x526a49
mov dword [ebp - 0x418], 1
jmp 0x526a53
mov dword [ebp - 0x418], 0
mov edx, dword [ebp - 0x418]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0x1b]
and edx, 2
je 0x526a74
mov dword [ebp - 0x41c], 1
jmp 0x526a7e
mov dword [ebp - 0x41c], 0
mov edx, dword [ebp - 0x41c]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0x1b]
and edx, 4
je 0x526a9f
mov dword [ebp - 0x420], 1
jmp 0x526aa9
mov dword [ebp - 0x420], 0
mov edx, dword [ebp - 0x420]
mov dword [eax + 0x28], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
jne 0x526acb
cmp dword [eax + 0x28], 0
je 0x526ad7
mov dword [ebp - 0x424], 1
jmp 0x526ae1
mov dword [ebp - 0x424], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x424]
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], edx
movzx eax, word [ebp - 0x20a]
test eax, eax
jne 0x526b10
mov dword [ebp - 0x428], 1
jmp 0x526b1a
mov dword [ebp - 0x428], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x428]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], 0
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0x1b]
and edx, 0x80
jne 0x526b4c
mov eax, dword [eax + 4]
movsx eax, byte [eax]
test eax, eax
jne 0x526b51
jmp 0x526d81
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x140]
add esp, 8
movzx eax, ax
cmp eax, 1
jne 0x526b81
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], 0
jmp 0x526d81
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xd8]
mov dword [ebp - 0x40c], eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
add esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov edx, dword [eax + 0xc]
push edx
call fcn.00469e30
pop ecx
push eax
call fcn.005214f0
pop ecx
movzx eax, al
mov edx, dword [ebp - 0x42c]
mov word [edx + 0x14], ax
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x14]
cmp edx, 0x43
jne 0x526c08
mov dword [ebp - 0x430], 0x20
jmp 0x526c12
mov dword [ebp - 0x430], 0
mov edx, dword [ebp - 0x430]
mov byte [eax + 0x1a], dl
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x14]
cmp eax, 0x43
jne 0x526c37
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
push eax
call fcn.00521030
pop ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
mov edx, dword [eax + 4]
push edx
mov edx, dword [eax + 0x7c]
mov edx, dword [edx + 0xc]
push edx
call fcn.004f1709
add esp, 8
mov edx, dword [ebp - 0x434]
mov word [edx + 0x18], ax
movzx eax, bx
movzx eax, byte [ebp + eax - 0x200]
test eax, eax
je 0x526d12
push 0x100
call fcn.0049b580
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
push 0xff
movzx eax, bx
lea eax, [ebp + eax - 0x200]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.004aa8d0
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x140]
add esp, 8
movzx eax, ax
cmp eax, 1
jne 0x526ccd
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], 0
jmp 0x526d12
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push eax
call fcn.00469e30
pop ecx
push eax
call fcn.005214f0
pop ecx
movzx eax, al
cmp eax, 0x4c
je 0x526d12
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], 0
mov eax, dword [ebp - 0x40c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
add esp, 8
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x16]
cmp edx, 0xf0
jg 0x526d77
movzx eax, word [eax + 0x14]
cmp eax, 0x55
je 0x526d77
cmp eax, 0x4e
jne 0x526d4d
cmp edx, 8
jne 0x526d77
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x14]
cmp edx, 0x44
jne 0x526d62
movzx eax, word [eax + 0x16]
cmp eax, 8
jne 0x526d77
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x14]
cmp edx, 0x4c
jne 0x526d81
movzx eax, word [eax + 0x16]
cmp eax, 1
je 0x526d81
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret