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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push esi
push edi
push eax
lea ebx, [eax + 0x18]
call fcn.0051ca88
add esp, 0xc
test eax, eax
je 0x528257
mov eax, 1
jmp 0x5286b9
cmp edi, 0x14c
jg 0x52833f
je 0x5284f6
add edi, 0xffffff02
cmp edi, 0x2f
ja case.0x528278.255
jmp dword [edi*4 + 0x52827f]
cmp edi, 0x213
jg 0x52838d
je 0x52862d
cmp edi, 0x152
jg 0x528375
je 0x52852a
sub edi, 0x14e
je 0x528510
sub edi, 2
je 0x5284c9
jmp case.0x528278.255
sub edi, 0x211
je 0x5285be
dec edi
je 0x528603
jmp case.0x528278.255
cmp edi, 0x80e4
jg 0x5283b8
je 0x52858d
sub edi, 0x214
je 0x528692
sub edi, 0x7ecf
je 0x52854c
jmp case.0x528278.255
sub edi, 0x80e5
je 0x5285a9
dec edi
je 0x528578
jmp case.0x528278.255
add esi, 4
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0x24]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x28]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x30]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x32]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x34]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x36]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0x38]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x3c]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x3e]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x5a]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0x58]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov ax, 1
mov edx, dword [esi - 4]
mov word [edx], 0
mov cx, word [ebx + 0x28]
shl ax, cl
add ax, 0xffff
add esi, 4
mov edx, dword [esi - 4]
mov word [edx], ax
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0xe2]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0xe4]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov cx, word [ebx + 0x78]
mov edx, dword [esi - 4]
add esi, 4
mov word [edx], cx
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0x7a]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
cmp word [ebx + 0x78], 1
jne 0x52855c
mov edx, dword [ebx + 0x7a]
cmp word [edx], 1
je 0x528560
xor ecx, ecx
jmp 0x528565
mov ecx, 1
add esi, 4
mov eax, dword [esi - 4]
mov word [eax], cx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0x20]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
mov dx, word [ebx + 0x2a]
add dx, 0xffff
add esi, 4
mov eax, dword [esi - 4]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0x14]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
cmp dword [ebx + 0xc0], 0
jne 0x5285eb
push 0xc
call fcn.00525888
pop ecx
mov edi, eax
mov dword [ebx + 0xc0], edi
mov dword [edi], 0x3e991687
mov dword [edi + 4], 0x3f1645a2
mov dword [edi + 8], 0x3de978d5
add esi, 4
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0xc0]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov cx, word [ebx + 0xc4]
mov edx, dword [esi - 4]
add esi, 4
mov word [edx], cx
mov dx, word [ebx + 0xc6]
mov eax, dword [esi - 4]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
add esi, 4
mov eax, dword [esi - 4]
mov dx, word [ebx + 0xc8]
mov word [eax], dx
mov eax, 1
jmp 0x5286b9
cmp dword [ebx + 0xd6], 0
jne 0x528654
push ebx
call fcn.005280e0
pop ecx
add esi, 4
mov edx, dword [esi - 4]
mov ecx, dword [ebx + 0xd6]
mov dword [edx], ecx
movzx eax, word [ebx + 0x36]
movzx edx, word [ebx + 0x78]
sub eax, edx
dec eax
jle 0x52868b
add esi, 4
mov eax, dword [ebx + 0xda]
mov ecx, dword [esi - 4]
add esi, 4
mov dword [ecx], eax
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0xde]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
cmp dword [ebx + 0xd2], 0
jne 0x5286a2
push ebx
call fcn.005281e0
pop ecx
add esi, 4
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0xd2]
mov dword [eax], edx
mov eax, 1
jmp 0x5286b9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret