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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov dword [esp + 0x20], ebp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x5412d4
cmp dword [ebp + 0x74], esi
jne 0x5412c9
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x5412c9
mov byte [ebp + 0x17], 1
push ebp
call fcn.0051ae50
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x24]
mov ebx, eax
test eax, eax
je 0x541a7c
push edi
cmp byte [ebx + 0x60], 0
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], edx
je 0x5412fb
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x5413e4
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x541309
mov ecx, dword [eax]
jmp 0x54130b
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x5413e4
lea esp, [esp]
cmp edi, 1
jne 0x541378
cmp dword [edx + 0x20], str.nth_value
jne 0x541378
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0x50]
inc eax
inc edx
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x54135d
push eax
push edx
push dword [esp + 0x24]
push 0x5d
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5413cf
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
inc edx
jmp 0x5413b8
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0x50]
add eax, edi
mov ecx, dword [esi + 0x74]
add edx, edi
cmp dword [esi + 0x78], ecx
jg 0x54139e
push eax
push edx
push dword [esp + 0x34]
push 0x5d
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5413cf
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
add edx, edi
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4], 0x5d
mov ecx, dword [esp + 0x18]
inc edi
mov edx, dword [esp + 0x14]
cmp edi, ecx
jl 0x541320
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x58], 0
jne 0x54167e
test dword [edx + 4], 0x1000
je 0x54167e
cmp byte [ebx + 0x11], 0x5a
je 0x54167e
mov edi, dword [esi + 0x74]
cmp dword [esi + 0x78], edi
jg 0x541431
push 0
push 0
push eax
push 0x32
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x48]
add esp, 0x14
mov edi, eax
jmp 0x541464
mov edx, dword [esp + 0x34]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x30], 0
jne 0x5415cc
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x54148d
push 0
push 1
push edx
push 0x55
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5414c0
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x40]
cmp dword [esi + 0x78], ecx
jg 0x5414df
push 0
push edx
push dword [esp + 0x3c]
push 0x50
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x541512
mov ebp, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
lea eax, [edx + 2]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x78], ecx
jg 0x541535
push eax
push 2
push edx
push 0x60
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x541568
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
add edx, 2
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x78], ecx
jg 0x541594
push 0
push edx
push eax
push 0x89
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x54165a
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x54165a
push 1
push edx
push 0
push dword [ebx + 0x3c]
push 0x19
push esi
call fcn.0051a560
mov ecx, dword [esi + 0x74]
add esp, 0x18
mov edx, dword [ebx + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x5415ff
push 0
push 0
push edx
push 0x81
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x541632
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
lea ecx, [edx - 2]
test ecx, ecx
jns 0x54163f
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x54164e
mov eax, 0x6a4314
jmp 0x541657
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
test edi, edi
jns 0x541664
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x541676
mov eax, 0x6a4314
jmp 0x541a6d
lea ecx, [edi + edi*4]
jmp 0x541a67
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x5416db
sub edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x5416a7
push 0
push 1
push edx
push 0x55
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x541a70
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x541a70
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x10], 0x4a33c0
je 0x541a70
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x28], eax
je 0x5417d1
mov al, byte [ebp + 0x13]
test al, al
jne 0x54170a
inc dword [ebp + 0x2c]
mov edi, dword [ebp + 0x2c]
jmp 0x541719
dec al
mov byte [ebp + 0x13], al
movzx eax, al
mov edi, dword [ebp + eax*4 + 0x98]
mov edx, dword [ebx + 0x50]
add edx, ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x541739
push edi
push edx
push dword [esp + 0x34]
push 0x5d
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x541768
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x78], edx
jg 0x54178a
push 1
push 0
push edi
push 0x14
push esi
call fcn.004ceed0
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x5417b9
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
test edi, edi
je 0x5417d1
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x5417d1
movzx eax, al
mov dword [ebp + eax*4 + 0x98], edi
inc byte [ebp + 0x13]
cmp byte [ebx + 0x60], 0
je 0x54189d
mov eax, dword [ebx + 0x48]
mov edi, dword [esi + 0x74]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
mov dword [esp + 0x18], edx
cmp edx, 1
jne 0x541817
mov al, byte [ebp + 0x13]
test al, al
jne 0x541802
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x10], eax
jmp 0x541840
dec al
mov byte [ebp + 0x13], al
movzx eax, al
mov eax, dword [ebp + eax*4 + 0x98]
mov dword [esp + 0x10], eax
jmp 0x541840
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
cmp edx, ecx
jg 0x541831
add eax, edx
sub ecx, edx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], ecx
jmp 0x541840
mov eax, dword [ebp + 0x2c]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x10], ecx
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x48]
push 0
push 0
push dword [esp + 0x18]
push dword [eax + 0x14]
push ebp
call fcn.004f3fa0
mov edx, dword [esi + 0x74]
add esp, 0x14
cmp edi, edx
jge 0x54189d
mov ebp, dword [esp + 0x2c]
mov ecx, edi
test edi, edi
jns 0x54186c
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x54187b
mov ecx, 0x6a4314
jmp 0x541884
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
cmp byte [ecx], 0x5d
jne 0x541894
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 0x30]
jne 0x541894
mov dword [ecx + 4], ebp
inc edi
cmp edi, edx
jl 0x541862
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
test byte [eax + 4], 0x20
je 0x541965
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x14]
push dword [eax + 8]
push ebp
call fcn.004f66b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x5418c9
mov eax, dword [ebp]
mov edi, dword [eax + 8]
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x5418e6
push 0
push 0
push 0
push 0x54
push esi
call fcn.004ceed0
add esp, 0x14
mov edx, eax
jmp 0x54191d
mov ebp, dword [esp + 0x24]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x541933
push edi
push 0xfffffffffffffffe
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x541965
test edx, edx
jns 0x54193b
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x54195a
push 0xfffffffffffffffe
push edi
push eax
push esi
call fcn.00533cd0
add esp, 0x10
jmp 0x541965
test edi, edi
je 0x541965
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
mov eax, dword [esp + 0x30]
mov edx, eax
mov ecx, dword [esi + 0x74]
neg edx
mov edi, dword [ebx + 0x34]
sbb edx, edx
add edx, 0xa1
cmp dword [esi + 0x78], ecx
jg 0x541993
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
push edx
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5419cc
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
je 0x5419e6
push edx
push 0xfffffffffffffff8
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x5419f8
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x541a11
mov ecx, dword [esp + 0x18]
movzx edx, cl
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp byte [ebx + 0x60], 0
je 0x541a45
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x541a3a
test edi, edi
je 0x541a45
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x541a45
movzx eax, al
mov dword [ebp + eax*4 + 0x98], edi
inc byte [ebp + 0x13]
jmp 0x541a45
cmp eax, dword [ebp + 0x1c]
jle 0x541a45
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x541a70
mov edx, dword [esi + 0x74]
jns 0x541a55
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x541a64
mov eax, 0x6a4314
jmp 0x541a6d
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [ebx + 0x24]
test ebx, ebx
jne 0x5412e3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret