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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404282
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x5247fa
cmp dword [ebp - 0x18], 0
jne 0x524811
push 0x12cd
push 0x778ce8
push 0x778d78
call fcn.0040606e
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x52481d
cmp dword [ebp - 0x18], 0
jne 0x524822
jmp 0x524bf0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x68]
jne 0x524b52
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 5
ja case.0x524850.1
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x524bf4]
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00527580
add esp, 0xc
jmp case.0x524850.1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0
je 0x5248ba
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0x1e7
mov eax, dword [ebp + 8]
push eax
call fcn.00401866
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5248ba
cmp dword [ebp - 0x1c], 0
je 0x5248ba
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040551a
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0x64
je 0x5249c6
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x58], 0
jne 0x524968
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10a4]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x524909
push 0
push 4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00402d6a
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x524968
mov dword [ebp - 0x2c], str.UPDATE
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x10], 0
jmp 0x52492f
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x20]
jae 0x524968
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx*8 + 0x24]
push ecx
call fcn.00405b41
add esp, 8
test eax, eax
jne 0x524966
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
or eax, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
jmp 0x524968
jmp 0x524926
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xa0]
cmp dword [eax + 0x28], 0
je 0x524989
mov ecx, dword [ebp + 0xc]
push ecx
push 3
mov edx, dword [ebp + 8]
push edx
call fcn.00527580
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00526420
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00403247
add esp, 4
test eax, eax
je 0x5249c6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00528aa0
add esp, 8
jmp case.0x524850.1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x524a64
xor edx, edx
jne 0x5249fd
push 0x1313
push 0x778d98
push 0x778e28
call fcn.0040606e
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.00527580
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00526f60
add esp, 8
test eax, eax
jne 0x524a28
jmp case.0x524850.1
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00526ee0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x524a4b
jmp case.0x524850.1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00526420
add esp, 0xc
jmp 0x524a74
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00528ff0
add esp, 8
jmp case.0x524850.1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x524b21
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x18], 3
je 0x524ab0
push 0x1331
push 0x778e30
push 0x778ec0
call fcn.0040606e
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.00527580
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00526f60
add esp, 8
test eax, eax
jne 0x524ad8
jmp case.0x524850.1
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00526ee0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x524af8
jmp case.0x524850.1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00526420
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00527980
add esp, 8
jmp case.0x524850.1
mov edx, dword [ebp - 4]
add edx, 0x70
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00527780
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 6
mov ecx, dword [ebp + 8]
push ecx
call fcn.00527580
add esp, 0xc
jmp 0x524bf0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
jne 0x524bb6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0x1e1
jne 0x524b70
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x3c], 1
jne 0x524b88
mov edx, dword [ebp - 4]
cmp dword [edx + 0x6c], 0x198
je 0x524b88
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0x198
jne 0x524bb4
mov ecx, dword [ebp - 4]
add ecx, 0x70
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x6c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00527780
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 6
mov eax, dword [ebp + 8]
push eax
call fcn.00527580
add esp, 0xc
jmp 0x524bf0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 1
jne 0x524bf0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x78], 2
jne 0x524bf0
push 0x6a8884
mov eax, dword [ebp - 4]
add eax, 0x3c
push eax
call fcn.00406519
add esp, 8
test eax, eax
jne 0x524bf0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00528490
add esp, 8
mov esp, ebp
pop ebp
ret