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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x74]
push edx
mov eax, dword [eax + 0x80]
push eax
call fcn.0051bf8b
add esp, 0x10
mov ax, word [ebp - 0x208]
mov word [ebp - 0x402], ax
mov ax, word [ebp - 0x206]
mov word [ebp - 0x408], ax
mov ax, word [ebp - 0x204]
mov word [ebp - 0x404], ax
mov ax, word [ebp - 0x202]
mov word [ebp - 0x406], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x400]
mov dword [edx + 0x78], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x78]
mov dword [ebp - 0x41c], edx
cmp edx, 0
je 0x520873
mov ecx, edx
and ecx, 0x1ff
cmp ecx, 0
jne 0x520873
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 8]
push eax
call fcn.00497100
add esp, 4
mov ecx, dword [ebp - 0x41c]
mov ecx, ecx
mov ebx, 0
cmp ebx, edx
jg 0x520873
jl 0x52076a
cmp ecx, eax
jae 0x520873
cmp word [ebp - 0x3f4], 0xf0
ja 0x520873
movzx eax, word [ebp - 0x402]
movzx edx, word [ebp - 0x408]
lea edx, [edx + eax]
cmp edx, 0x200
jg 0x520873
movzx edx, word [ebp - 0x404]
movzx ecx, word [ebp - 0x406]
lea ecx, [ecx + edx]
cmp ecx, 0x200
jg 0x520873
cmp edx, eax
jge 0x520813
movzx eax, word [ebp - 0x402]
movzx edx, word [ebp - 0x404]
movzx ecx, word [ebp - 0x406]
lea edx, [ecx + edx]
cmp edx, eax
jle 0x5207f8
cmp byte [ebp + eax - 0x200], 0
je 0x5207f8
mov dword [ebp - 0x414], 1
jmp 0x520802
mov dword [ebp - 0x414], 0
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x410], eax
jmp 0x520866
movzx eax, word [ebp - 0x402]
movzx edx, word [ebp - 0x408]
lea edx, [edx + eax]
movzx ecx, word [ebp - 0x404]
cmp edx, ecx
jle 0x520850
cmp byte [ebp + eax - 0x200], 0
je 0x520850
mov dword [ebp - 0x418], 1
jmp 0x52085a
mov dword [ebp - 0x418], 0
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x520882
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
jmp 0x520de9
cmp word [ebp - 0x406], 0
jne 0x5208d8
movzx eax, word [ebp - 0x402]
movzx edx, word [ebp - 0x404]
cmp eax, edx
jl 0x5208b8
movzx eax, word [ebp - 0x402]
mov dword [ebp - 0x420], eax
jmp 0x5208c2
mov dword [ebp - 0x420], 0x200
mov eax, dword [ebp - 0x420]
movzx edx, word [ebp - 0x404]
sub eax, edx
mov word [ebp - 0x406], ax
cmp word [ebp - 0x408], 0
jne 0x52092e
movzx eax, word [ebp - 0x402]
movzx edx, word [ebp - 0x404]
cmp eax, edx
jg 0x52090e
movzx eax, word [ebp - 0x404]
mov dword [ebp - 0x424], eax
jmp 0x520918
mov dword [ebp - 0x424], 0x200
mov eax, dword [ebp - 0x424]
movzx edx, word [ebp - 0x402]
sub eax, edx
mov word [ebp - 0x408], ax
movzx eax, word [ebp - 0x406]
lea eax, [eax + 1]
push eax
call fcn.00455e40
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
movzx eax, word [ebp - 0x406]
push eax
lea eax, [ebp - 0x200]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.00490c20
add esp, 0xc
mov edx, dword [ebp + 8]
mov ax, word [ebp - 0x3f4]
mov word [edx + 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, 0x1f4
mov edx, dword [ebp - 0x428]
movzx edx, word [edx + 0x16]
lea ecx, [edx + 8]
cdq
idiv ecx
mov edx, dword [ebp - 0x428]
mov word [edx + 0x7c], ax
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0x3f2]
mov byte [edx + 0x1b], al
mov eax, dword [ebp + 8]
test byte [eax + 0x1b], 1
je 0x5209c3
mov dword [ebp - 0x42c], 1
jmp 0x5209cd
mov dword [ebp - 0x42c], 0
mov edx, dword [ebp - 0x42c]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
test byte [eax + 0x1b], 2
je 0x5209f2
mov dword [ebp - 0x430], 1
jmp 0x5209fc
mov dword [ebp - 0x430], 0
mov edx, dword [ebp - 0x430]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 8]
test byte [eax + 0x1b], 4
je 0x520a21
mov dword [ebp - 0x434], 1
jmp 0x520a2b
mov dword [ebp - 0x434], 0
mov edx, dword [ebp - 0x434]
mov dword [eax + 0x28], edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
jne 0x520a55
cmp dword [eax + 0x28], 0
je 0x520a64
mov dword [ebp - 0x438], 1
jmp 0x520a6e
mov dword [ebp - 0x438], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x438]
mov dword [edx + 0x34], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], edx
cmp word [ebp - 0x20a], 0
jne 0x520aa3
mov dword [ebp - 0x43c], 1
jmp 0x520aad
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x43c]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x1c], edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0
cmp byte [ebp - 0x3f1], 1
jne 0x520b0a
cmp byte [ebp - 0x20d], 1
jne 0x520aef
mov dword [ebp - 0x440], 1
jmp 0x520af9
mov dword [ebp - 0x440], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x440]
mov dword [edx + 0x44], eax
jmp 0x520b14
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
test byte [eax + 0x1b], 0x80
je 0x520b26
jmp 0x520de9
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp byte [edx], 0
je 0x520b55
push edx
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x140]
add esp, 8
cmp ax, 1
jne 0x520b64
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
jmp 0x520de9
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x80]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x1c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
mov edx, dword [eax + 0xc]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xec]
mov dword [ebp - 0x40c], eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
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 - 0x444], eax
mov edx, dword [eax + 0xc]
push edx
call fcn.0044da90
add esp, 4
push eax
call fcn.0051a45d
add esp, 4
movzx eax, al
mov edx, dword [ebp - 0x444]
mov word [edx + 0x14], ax
mov eax, dword [ebp + 8]
cmp word [eax + 0x14], 0x43
jne 0x520c00
mov dword [ebp - 0x448], 0x20
jmp 0x520c0a
mov dword [ebp - 0x448], 0
mov edx, dword [ebp - 0x448]
mov byte [eax + 0x1a], dl
mov eax, dword [ebp + 8]
cmp word [eax + 0x14], 0x43
jne 0x520c3b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 0xc]
push eax
call fcn.00519c30
add esp, 4
jmp 0x520c45
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov edx, dword [eax + 4]
push edx
mov edx, dword [eax + 0x80]
mov edx, dword [edx + 0xc]
push edx
call fcn.004eecd7
add esp, 8
mov edx, dword [ebp - 0x44c]
mov word [edx + 0x18], ax
movzx eax, word [ebp - 0x402]
cmp byte [ebp + eax - 0x200], 0
je 0x520d46
movzx eax, word [ebp - 0x408]
lea eax, [eax + 1]
push eax
call fcn.00455e40
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
movzx eax, word [ebp - 0x408]
push eax
movzx eax, word [ebp - 0x402]
lea eax, [ebp + eax - 0x200]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call fcn.00490c20
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x140]
add esp, 8
cmp ax, 1
jne 0x520cf7
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
jmp 0x520d46
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x80]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
mov edx, dword [eax + 0xc]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push eax
call fcn.0044da90
add esp, 4
push eax
call fcn.0051a45d
add esp, 4
cmp al, 0x4c
je 0x520d46
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x40c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
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 0x520ddf
movzx eax, word [eax + 0x14]
cmp eax, 0x55
je 0x520ddf
cmp eax, 0x4e
jne 0x520d94
cmp edx, 8
jne 0x520ddf
mov eax, dword [ebp + 8]
cmp word [eax + 0x14], 0x44
jne 0x520dad
cmp word [eax + 0x16], 8
jne 0x520ddf
mov eax, dword [ebp + 8]
cmp word [eax + 0x14], 0x54
jne 0x520dc6
cmp word [eax + 0x16], 8
jne 0x520ddf
mov eax, dword [ebp + 8]
cmp word [eax + 0x14], 0x4c
jne 0x520de9
cmp word [eax + 0x16], 1
je 0x520de9
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
pop ebx
mov esp, ebp
pop ebp
ret