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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [edx + 0x1c]
lea eax, [edx + 0x24]
mov ecx, dword [eax + 0x30]
push esi
mov esi, dword [eax + 0x10]
push edi
mov edi, dword [eax + 0x18]
add edi, ebx
add esi, ebx
add ecx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x68]
test ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
je 0x521798
mov edx, dword [ebp - 0xc]
add ebx, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ebx
jmp 0x52179c
and dword [ebp - 4], 0
mov eax, dword [eax + 0x40]
test eax, eax
je 0x5217ad
mov ebx, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 8], eax
jmp 0x5217b1
and dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebx], eax
xor eax, eax
mov ah, byte [ecx + 4]
push ebx
mov al, byte [ecx + 5]
mov dword [ebx + 0x6c], eax
mov ax, word [edx + 0xea]
call fcn.005212e3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 0x38]
mov dword [ebx + 0x10], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebx + 0xc], ecx
mov eax, dword [eax + 0x34]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x20], 0xa8071
cmp dword [eax + 0xc4], 0
jne 0x52181f
lea ecx, [ebp + 8]
push ecx
push eax
push 0x47495344
call fcn.00520f5e
test eax, eax
je 0x52184b
cmp dword [ebp + 8], 0
je 0x52184b
jmp 0x521844
mov eax, dword [eax + 0x1c]
push 8
push eax
mov dword [ebp + 8], eax
call fcn.005216ff
lea eax, [eax*4 + 0xc]
push eax
push dword [ebp + 8]
call fcn.005216ff
cmp eax, 0x44534947
jne 0x52184b
mov dword [ebx + 0x20], 0xe8071
mov eax, dword [ebp + 0x10]
mov cx, word [eax + 0x58]
and word [ebx + 0x28], 0
mov word [ebx + 0x26], cx
cmp dword [eax + 8], 0
je 0x52186d
or byte [ebx + 0x23], 8
mov ax, word [eax + 0x5a]
mov word [ebx + 0x28], ax
mov eax, dword [ebp - 4]
test eax, eax
je 0x521894
movzx edx, byte [eax + 0xe]
xor ecx, ecx
mov ch, byte [eax + 0xc]
mov cl, byte [eax + 0xd]
movzx eax, byte [eax + 0xf]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
je 0x521894
or byte [ebx + 0x22], 0x40
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.00520e8f
mov word [ebp + 0xc], ax
mov word [ebx + 0x24], ax
xor eax, eax
mov ah, byte [esi + 0x12]
mov al, byte [esi + 0x13]
mov word [ebx + 0x2a], ax
xor eax, eax
mov ah, byte [edi + 4]
mov al, byte [edi + 5]
mov word [ebx + 0x30], ax
xor eax, eax
mov ah, byte [edi + 6]
mov al, byte [edi + 7]
mov word [ebx + 0x32], ax
xor eax, eax
mov ah, byte [edi + 8]
mov al, byte [edi + 9]
mov word [ebx + 0x34], ax
mov eax, dword [ebp - 8]
test eax, eax
je 0x521918
xor ecx, ecx
mov ch, byte [eax + 0x4a]
mov cl, byte [eax + 0x4b]
mov word [ebx + 0x2c], cx
xor ecx, ecx
mov ch, byte [eax + 0x4c]
mov cl, byte [eax + 0x4d]
mov word [ebx + 0x2e], cx
xor ecx, ecx
mov ch, byte [eax + 0x44]
mov cl, byte [eax + 0x45]
mov word [ebx + 0x36], cx
xor ecx, ecx
mov ch, byte [eax + 0x46]
mov cl, byte [eax + 0x47]
mov word [ebx + 0x38], cx
xor ecx, ecx
mov ch, byte [eax + 0x48]
mov cl, byte [eax + 0x49]
jmp 0x52193a
mov dx, word [ebx + 0x32]
mov cx, word [ebx + 0x30]
mov word [ebx + 0x2c], cx
mov word [ebx + 0x36], cx
mov cx, word [ebx + 0x32]
mov word [ebx + 0x38], cx
mov cx, word [ebx + 0x34]
neg edx
mov word [ebx + 0x2e], dx
mov word [ebx + 0x3a], cx
movzx edx, byte [esi + 0x25]
xor ecx, ecx
mov ch, byte [esi + 0x24]
movsx ecx, cx
or ecx, edx
mov dword [ebx + 0x5c], ecx
movzx edx, byte [esi + 0x2b]
xor ecx, ecx
mov ch, byte [esi + 0x2a]
movsx ecx, cx
or ecx, edx
mov dword [ebx + 0x60], ecx
movzx edx, byte [esi + 0x29]
xor ecx, ecx
mov ch, byte [esi + 0x28]
movsx ecx, cx
or ecx, edx
mov dword [ebx + 0x64], ecx
movzx edx, byte [esi + 0x27]
xor ecx, ecx
mov ch, byte [esi + 0x26]
movsx ecx, cx
or ecx, edx
mov dword [ebx + 0x68], ecx
mov cx, word [ebx + 0x64]
sub cx, word [ebx + 0x5c]
test eax, eax
mov word [ebx + 0x3e], cx
je 0x5219b9
xor edx, edx
mov dh, byte [eax + 2]
movzx ax, byte [eax + 3]
mov dword [ebp + 8], eax
mov eax, edx
mov edx, dword [ebp + 8]
or eax, edx
test ax, ax
mov word [ebx + 0x3c], ax
jne 0x5219c8
movsx eax, cx
cdq
sub eax, edx
sar eax, 1
jmp 0x5219c4
movsx eax, cx
add eax, eax
push 3
cdq
pop ecx
idiv ecx
mov word [ebx + 0x3c], ax
movsx ecx, word [ebx + 0x2a]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov word [ebx + 0x40], ax
mov eax, ecx
push 4
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
mov word [ebx + 0x42], ax
je 0x521a00
xor eax, eax
mov ah, byte [ecx + 0xa]
mov al, byte [ecx + 0xb]
mov word [ebx + 0x44], ax
xor eax, eax
mov ah, byte [ecx + 8]
mov al, byte [ecx + 9]
jmp 0x521a21
movsx eax, word [ebx + 0x2a]
add eax, 7
cdq
push 0xe
pop ecx
idiv ecx
push 0xfffffffffffffff6
pop ecx
mov word [ebx + 0x44], ax
movsx eax, word [ebx + 0x2a]
add eax, 5
cdq
idiv ecx
mov ecx, dword [ebp - 4]
mov word [ebx + 0x46], ax
mov eax, dword [ebp - 8]
test eax, eax
je 0x521a46
xor edx, edx
mov dh, byte [eax + 0x1a]
mov dl, byte [eax + 0x1b]
mov word [ebx + 0x48], dx
xor edx, edx
mov dh, byte [eax + 0x1c]
mov dl, byte [eax + 0x1d]
mov word [ebx + 0x4a], dx
jmp 0x521a62
mov ax, word [ebx + 0x44]
mov word [ebx + 0x48], ax
movsx eax, word [ebx + 0x30]
cdq
push 3
pop ecx
idiv ecx
mov ecx, dword [ebp - 4]
mov word [ebx + 0x4a], ax
mov eax, dword [ebp - 8]
test eax, eax
je 0x521aa7
movzx dx, byte [eax + 5]
xor ecx, ecx
mov ch, byte [eax + 4]
or ecx, edx
cmp cx, 0xa
mov word [ebx + 0x1c], cx
jae 0x521a8b
movzx ecx, cx
mov cx, word [ecx*2 + 0x39972ff0]
mov word [ebx + 0x1c], cx
mov ecx, dword [ebp - 4]
lea esi, [eax + 0x20]
lea edi, [ebx + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp byte [ebx + 0x73], 9
mov edi, dword [ebp - 0x10]
jne 0x521afd
or byte [ebx + 0x22], 0x40
jmp 0x521afd
mov byte [ebx + 0x70], 2
mov byte [ebx + 0x71], 0
mov ax, word [esi + 0x2c]
and ax, 0x100
neg ax
sbb al, al
and al, 3
add al, 5
mov byte [ebx + 0x72], al
mov eax, dword [ebx + 0x20]
and eax, 0x400000
neg eax
sbb al, al
mov byte [ebx + 0x74], 0
mov byte [ebx + 0x75], 0
mov byte [ebx + 0x76], 0
mov byte [ebx + 0x77], 0
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x79], 0
and eax, 9
mov byte [ebx + 0x73], al
movzx eax, byte [ebx + 0x72]
mov ax, word [eax*2 + 0x39972ff0]
mov word [ebx + 0x1c], ax
xor eax, eax
mov dword [ebx + 0x4c], 1
xor edx, edx
mov dword [ebx + 0x50], edx
mov ah, byte [edi + 0x14]
movzx esi, byte [edi + 0x15]
movsx eax, ax
or eax, esi
mov dword [ebx + 0x54], eax
movzx esi, byte [edi + 0x13]
xor eax, eax
mov ah, byte [edi + 0x12]
movsx eax, ax
or eax, esi
cmp ecx, edx
mov dword [ebx + 0x58], eax
je 0x521b57
movzx esi, byte [ecx + 6]
xor eax, eax
mov ah, byte [ecx + 4]
mov al, byte [ecx + 5]
movzx ecx, byte [ecx + 7]
shl eax, 8
or eax, esi
shl eax, 8
or eax, ecx
imul eax, eax, 0xa
sar eax, 0x10
movsx eax, ax
mov dword [ebx + 0x18], eax
jmp 0x521b5a
mov dword [ebx + 0x18], edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x54]
cmp eax, edx
mov dword [ebx + 0x14], eax
je 0x521c70
mov esi, dword [ebp + 0xc]
lea ecx, [eax + ebx]
and esi, 0x21
xor eax, eax
sub esi, edx
mov dword [ebp + 0x10], edx
je 0x521b96
dec esi
je 0x521b85
sub esi, 0x1f
jne 0x521bb6
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0xc
lea eax, [ecx + 0xc]
jmp 0x521bb6
lea eax, [ecx + 0x20]
mov dword [ebp + 0x10], eax
mov dword [ecx], 0xc
mov dword [ecx + 4], 0x20
mov dword [ecx + 8], 0x34
lea edx, [ecx + 0xc]
lea eax, [ecx + 0x34]
mov cl, byte [ebx + 0x72]
mov byte [ebp - 0x25], cl
mov cx, word [ebx + 0x1c]
mov word [ebp - 0x24], cx
mov cx, word [ebx + 0x24]
and cl, 0xbf
test edx, edx
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov word [ebp - 0x22], cx
mov cx, word [ebx + 0x3c]
mov word [ebp - 0x20], cx
mov cx, word [ebx + 0x3e]
mov word [ebp - 0x1e], cx
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x18], ecx
je 0x521c1b
push 5
pop ecx
lea esi, [ebp - 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov byte [eax + 3], 8
or byte [edx + 6], 0x20
inc word [edx + 8]
inc word [edx + 0xa]
mov word [edx + 4], 0x2bc
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x521c3f
push 5
pop ecx
push 0x21
lea esi, [ebp - 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
or byte [edx + 6], 1
pop ebx
mov dword [edx + 0xc], 7
mov dword [edx + 0x10], ebx
jmp 0x521c42
push 0x21
pop ebx
test eax, eax
je 0x521c70
push 5
pop ecx
lea esi, [ebp - 0x28]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
or word [eax + 6], bx
inc word [eax + 8]
inc word [eax + 0xa]
mov byte [eax + 3], 8
mov word [eax + 4], 0x2bc
mov dword [eax + 0xc], 7
mov dword [eax + 0x10], ebx
pop edi
pop esi
pop ebx
leave
ret 0x10