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

Disassembly:
nop
nop
nop
nop
mov eax, dword [ecx + 0x6c]
cmp eax, 1
jne 0x52515d
jmp 0x525500
test eax, eax
jne 0x525166
jmp 0x525180
cmp eax, 2
jne 0x525170
jmp 0x525af0
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e663a
push eax
mov dword fs:[0], esp
sub esp, 0x60
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.00525840
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [0x5ec6c4]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp eax, 4
ja 0x525246
jmp dword [eax*4 + 0x4c54e4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x54]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.005259b0
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [0x66bc28]
mov dword [esp + 0x30], edx
lea ecx, [eax + 0x2af8]
call fcn.0048bb50
push 0x4b90
mov dword [esi + 0x7c], eax
call 0x620929
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x78], edi
je 0x5252bc
mov ecx, eax
call fcn.0051f7b0
jmp 0x5252be
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [eax + 0x5c], edi
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x78], 0xffffffff
mov dword [ecx + 0x70], edi
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x44], edi
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], edi
mov ecx, dword [esi + 0x3c]
mov dword [ecx + 0x4c], edi
mov ecx, dword [esi + 0x3c]
add ecx, 0x68
call 0x620b73
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x60], edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x54]
mov dword [eax + 0x50], ecx
mov eax, dword [esi + 0x60]
cmp eax, 3
jne 0x52530e
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x40], edi
jmp 0x525314
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x40], edi
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x3c]
push edi
push eax
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push esi
push eax
push 0x52000000
push 0x64228c
push edi
call dword [edx + 0x54]
test eax, eax
je 0x5254bf
mov ecx, dword [esi + 0x3c]
push edi
call fcn.00521af0
push ecx
lea edx, [esi + 0x64]
mov ebx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call 0x62095d
push ebx
call fcn.004bfb30
mov ecx, dword [esi + 0x3c]
add esp, 8
call fcn.005215e0
mov ecx, dword [esi + 0x3c]
push 1
call 0x6243b3
push 5
mov ecx, esi
call 0x6243b3
mov ecx, esi
call fcn.00525a30
mov ecx, dword [esi + 0x3c]
call fcn.005219e0
mov ecx, dword [esi + 0x3c]
call 0x62441c
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
call 0x61d5d8
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 0x1c]
push edx
call dword [0x5ec75c]
test eax, eax
je 0x52548a
mov ebp, dword [0x5ec754]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + 0x70], edi
jne 0x52548a
cmp ebx, edi
jne 0x52548a
push 1
push edi
push edi
lea edx, [esp + 0x60]
push edi
push edx
call ebp
test eax, eax
jle 0x525413
mov eax, dword [esp + 0x58]
cmp eax, 0x201
je 0x5253fc
cmp eax, 0x100
je 0x5253fc
lea eax, [esp + 0x54]
push eax
jmp 0x52540d
cmp dword [esi + 0x58], edi
je 0x525408
mov ebx, 1
jmp 0x525413
lea ecx, [esp + 0x54]
push ecx
call dword [0x5ec730]
cmp dword [esi + 0x88], edi
je 0x525475
lea edx, [esp + 0x18]
push edx
call 0x61d5d8
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, esp
lea edx, [esp + 0x24]
mov dword [esp + 0x20], esp
push edx
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
call fcn.00473160
mov ecx, dword [eax]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8c]
shl edx, 2
sub ecx, edx
cmp ecx, eax
jle 0x525475
mov ebx, 1
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [0x5ec75c]
test eax, eax
jne 0x5253bc
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x5254bf
mov edx, dword [eax + 0x1c]
push edx
call dword [0x5ec75c]
test eax, eax
je 0x5254bf
mov eax, dword [esi + 0x7c]
mov ecx, dword [0x66bc28]
push eax
add ecx, 0x2af8
call fcn.0048bb90
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x7c], edi
mov edx, dword [ecx]
call dword [edx + 0x58]
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x5254cd
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x3c], edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e6662
push eax
mov dword fs:[0], esp
sub esp, 0x60
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.00525840
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [0x5ec6c4]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp eax, 4
ja 0x5255c6
jmp dword [eax*4 + 0x4c5824]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x54]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.005259b0
mov ecx, dword [eax]
push 0x3c
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x7c], 0x3e7
mov dword [esp + 0x34], edx
call 0x620929
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x78], ebx
je 0x525637
mov ecx, edi
call 0x6212c0
mov dword [edi], 0x5ee67c
mov ecx, edi
jmp 0x525639
xor ecx, ecx
mov eax, dword [esi + 0x7c]
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push esi
push eax
push 0x52000000
or edi, 0xffffffff
push 0x641858
push 0x5ee668
mov dword [esp + 0x9c], edi
mov dword [esi + 0x40], ecx
call 0x5fc8c2
test eax, eax
je 0x5257fe
push ecx
lea edx, [esi + 0x64]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call 0x62095d
lea eax, [esp + 0x14]
push eax
call fcn.004bfb30
add esp, 8
mov eax, dword [eax]
mov ecx, dword [esi + 0x40]
push eax
mov dword [esp + 0x7c], 1
call fcn.004bee20
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], edi
call 0x620be8
mov ecx, dword [esi + 0x40]
push 0x64184c
call fcn.004bef40
push 5
mov ecx, esi
call 0x6243b3
mov ecx, esi
call fcn.00525a30
mov ecx, dword [esi + 0x40]
call fcn.004bee40
mov ecx, dword [esi + 0x40]
call 0x62441c
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
mov dword [esi + 0x84], ebx
call 0x61d5d8
mov edx, dword [esi + 0x40]
mov ebp, dword [0x5ec75c]
mov eax, dword [edx + 0x1c]
push eax
call ebp
test eax, eax
je 0x5257cd
cmp dword [esi + 0x84], ebx
jne 0x5257cd
cmp edi, ebx
jne 0x5257cd
push 1
push ebx
push ebx
lea ecx, [esp + 0x60]
push ebx
push ecx
call dword [0x5ec754]
test eax, eax
jle 0x52575a
mov eax, dword [esp + 0x58]
cmp eax, 0x201
je 0x525743
cmp eax, 0x100
je 0x525743
lea edx, [esp + 0x54]
push edx
jmp 0x525754
cmp dword [esi + 0x58], ebx
je 0x52574f
mov edi, 1
jmp 0x52575a
lea eax, [esp + 0x54]
push eax
call dword [0x5ec730]
cmp dword [esi + 0x88], ebx
je 0x5257bc
lea ecx, [esp + 0x10]
push ecx
call 0x61d5d8
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
mov eax, esp
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x20], esp
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00473160
mov ecx, dword [eax]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8c]
shl edx, 2
sub ecx, edx
cmp ecx, eax
jle 0x5257bc
mov edi, 1
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push ecx
call ebp
test eax, eax
jne 0x525702
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x5257fe
mov edx, dword [eax + 0x1c]
push edx
call ebp
test eax, eax
je 0x5257fe
mov eax, dword [esi + 0x7c]
mov ecx, dword [0x66bc28]
push eax
add ecx, 0x2af8
call fcn.0048bb90
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x7c], ebx
mov edx, dword [ecx]
call dword [edx + 0x58]
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x52580c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e66e7
push eax
mov dword fs:[0], esp
sub esp, 0x530
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.00525840
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [0x5ec6c4]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp eax, 4
ja case.default.0x525b3a
jmp dword [eax*4 + 0x4c5e14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x7c]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.005259b0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x20], edx
call dword [0x5ec718]
push eax
call 0x627dec
lea ecx, [esp + 0xe4]
mov edi, eax
call fcn.004841e0
xor ebp, ebp
lea edx, [esi + 0x64]
push ebp
push 0x17
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [esp + 0x55c], ebp
call 0x62095d
lea eax, [esp + 0x30]
push eax
call fcn.004bfb30
add esp, 8
mov ecx, eax
mov byte [esp + 0x554], 1
call fcn.00464f20
push eax
lea ecx, [esp + 0xf4]
call fcn.004846a0
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], 0
sete bl
call 0x620be8
test bl, bl
je 0x525dd4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], 0x5f0b40
mov ecx, dword [edi + 4]
mov byte [esp + 0x548], 2
push ecx
call dword [0x5ec130]
push eax
lea ecx, [esp + 0x28]
call 0x6287fa
push ebp
push 1
lea edx, [esp + 0x2c]
push 1
push edx
push ebp
push edi
lea ecx, [esp + 0x94]
call fcn.00467760
push 1
mov ecx, esi
mov byte [esp + 0x54c], 3
call 0x6243b3
lea eax, [esp + 0x30]
push ebp
push eax
push edi
lea ecx, [esp + 0xf0]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.00485f00
push 1
lea ecx, [esp + 0x80]
call 0x62800a
lea ecx, [esp + 0x20]
xor ebx, ebx
push ecx
call 0x61d5d8
push 1
push ebp
push ebp
lea edx, [esp + 0x5c]
push ebp
push edx
call dword [0x5ec754]
test eax, eax
jle 0x525d45
mov eax, dword [esp + 0x54]
cmp eax, 0x201
je 0x525d2e
cmp eax, 0x100
je 0x525d2e
lea eax, [esp + 0x50]
push eax
jmp 0x525d3f
cmp dword [esi + 0x58], ebp
je 0x525d3a
mov ebx, 1
jmp 0x525d45
lea ecx, [esp + 0x50]
push ecx
call dword [0x5ec730]
cmp dword [esi + 0x88], ebp
je 0x525da2
lea edx, [esp + 0x4c]
push edx
call 0x61d5d8
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, esp
lea edx, [esp + 0x34]
mov dword [esp + 0x4c], esp
push edx
mov dword [eax], ecx
lea ecx, [esp + 0x34]
call fcn.00473160
mov ecx, dword [eax]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8c]
shl edx, 2
sub ecx, edx
cmp ecx, eax
jg 0x525daa
cmp ebx, ebp
je 0x525d01
lea ecx, [esp + 0x7c]
mov byte [esp + 0x548], 2
call fcn.00467ab0
mov dword [esp + 0x24], 0x5ecb04
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 4
call 0x628851
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x5ec71c]
lea ecx, [esp + 0xe4]
mov dword [esp + 0x548], 0xffffffff
call fcn.004842a0
mov ecx, dword [esp + 0x540]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x53c
ret