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

Disassembly:
push 0xffffffffffffffff
push 0x47e62e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a1824]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [0x4b24b8], ebp
call fcn.00405c20
xor esi, esi
push 8
push 4
push 0x1e
push 1
push 0xac44
push esi
mov ecx, edi
call fcn.00432240
add esi, 1
cmp esi, 2
jl 0x410428
mov eax, dword [esp + 0x48]
push 0x1e
push 2
push 0xac44
push 2
push 3
push 2
push 0xac44
push 1
push 2
push eax
push edi
mov ecx, 0x4b2eec
call fcn.0041b320
push 1
push str.misc_system.px
call fcn.00418f30
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x410494
push esi
push ebp
mov ecx, edi
call fcn.00432650
push esi
call fcn.0041a3c0
add esp, 4
push ebp
push str.misc_script.pk
call fcn.00419a00
add esp, 8
test al, al
je 0x410602
push str.misc_script.pk
call fcn.00419ac0
mov esi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esi
call fcn.00437740
xor ebx, ebx
cmp esi, ebp
mov dword [esp + 0x3c], ebp
jle 0x4105e4
push ebx
push str.misc_script.pk
call fcn.00419b00
add esp, 8
push eax
lea ecx, [esp + 0x18]
call fcn.004375c0
push 1
lea ecx, [esp + 0x18]
call fcn.0041ed20
push eax
push str.misc_script.pk
call fcn.00419bf0
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x4105d9
push 0x484ddc
lea ecx, [esp + 0x18]
call fcn.004371f0
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004378a0
mov ecx, eax
mov byte [esp + 0x3c], 1
call fcn.0041ed20
push eax
lea ecx, [esp + 0x18]
call fcn.004375c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call fcn.004374b0
push 0x90
call fcn.00452d7b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x3c], 2
je 0x410573
mov ecx, eax
call fcn.004167b0
jmp 0x410575
xor eax, eax
push eax
mov ecx, 0x4b2f00
mov byte [esp + 0x40], 0
call fcn.00407a40
mov eax, dword [0x4b2f00]
lea ecx, [eax - 1]
cmp ecx, dword [0x4b2f98]
jne 0x410741
mov eax, dword [0x4b2f9c]
cmp eax, ebp
je 0x4105aa
mov eax, dword [eax]
cmp eax, ebp
mov esi, eax
jne 0x4105af
mov esi, 0x4b2f08
push pe_nt_image_headers32
push 0x400
lea ecx, [esp + 0x1c]
call fcn.0041ed20
push eax
push edi
push ebp
mov ecx, esi
call fcn.004167d0
push edi
call fcn.0041a3c0
mov esi, dword [esp + 0x20]
add esp, 4
add ebx, 1
cmp ebx, esi
jl 0x4104d4
push str.misc_script.pk
call fcn.00419f70
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004374b0
push str.misc_script
call fcn.00418f80
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x1c], edi
jle 0x41081d
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00453a41
add esp, 4
xor esi, esi
cmp edi, ebp
mov ebx, eax
jle 0x410657
mov edi, edi
push 0x104
call fcn.00453a41
mov dword [ebx + esi*4], eax
add esi, 1
add esp, 4
cmp esi, edi
jl 0x410640
mov esi, dword [esp + 0x1c]
push str.misc_script
push esi
push ebx
call fcn.00419020
add esp, 0xc
xor ebp, ebp
test esi, esi
jle 0x410812
mov eax, dword [ebx + ebp*4]
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00437760
push 0x4853a0
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 3
call fcn.0041ed20
push eax
lea ecx, [esp + 0x1c]
push str.misc_script
push ecx
call fcn.00405e50
add esp, 0x10
push 1
mov ecx, eax
mov byte [esp + 0x40], 4
call fcn.0041ed20
push eax
call fcn.00418f30
add esp, 8
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0x3c], 3
call fcn.004374b0
test edi, edi
je 0x4107ea
push 0
push 0x484ddc
lea ecx, [esp + 0x2c]
call fcn.00437110
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x2c]
call fcn.004378a0
mov ecx, eax
mov byte [esp + 0x3c], 5
call fcn.0041ed20
push eax
lea ecx, [esp + 0x28]
call fcn.004375c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 3
call fcn.004374b0
push 0x90
call fcn.00452d7b
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x3c], 6
je 0x410783
mov ecx, eax
call fcn.004167b0
jmp 0x410785
cmp ecx, eax
jge 0x4105aa
cmp ecx, ebp
mov eax, dword [0x4b2f04]
mov edx, ecx
je 0x410760
cmp eax, ebp
je 0x410774
sub edx, 1
mov eax, dword [eax + 8]
jne 0x410754
cmp eax, ebp
je 0x410774
mov dword [0x4b2f98], ecx
mov dword [0x4b2f9c], eax
jmp 0x41059e
mov dword [0x4b2f98], 0xffffffff
jmp 0x4105aa
xor eax, eax
push eax
mov ecx, 0x4b2f00
mov byte [esp + 0x40], 3
call fcn.00407a40
mov eax, dword [0x4b2f00]
lea ecx, [eax - 1]
cmp ecx, dword [0x4b2f98]
jne 0x4109df
mov eax, dword [0x4b2f9c]
test eax, eax
je 0x4107ba
mov eax, dword [eax]
test eax, eax
mov esi, eax
jne 0x4107bf
mov esi, 0x4b2f08
push pe_nt_image_headers32
push 0x400
lea ecx, [esp + 0x2c]
call fcn.0041ed20
push eax
push edi
push 0
mov ecx, esi
call fcn.004167d0
push edi
call fcn.0041a3c0
mov esi, dword [esp + 0x20]
add esp, 4
mov eax, dword [ebx + ebp*4]
push eax
call fcn.004536bb
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004374b0
add ebp, 1
cmp ebp, esi
jl 0x410674
push ebx
call fcn.004536bb
add esp, 4
xor ebp, ebp
mov eax, dword [0x4b2f00]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 0x10
jle 0x410907
mov ebp, 0x1000
mov ebx, 0x10000
lea ebx, [ebx]
cmp edi, dword [0x4b2f98]
jne 0x410a21
mov eax, dword [0x4b2f9c]
test eax, eax
je 0x41086b
mov eax, dword [eax]
test eax, eax
jne 0x410870
mov eax, 0x4b2f08
mov ecx, eax
call fcn.004166a0
mov esi, eax
test esi, esi
jne 0x41088f
push 0x485678
push 0x4b2fa8
call fcn.004171b0
add esp, 8
cmp esi, ebp
jb 0x4108b2
mov ecx, dword [esp + 0x14]
jmp 0x4108a0
add ecx, 1
mov ebp, 1
shl ebp, cl
cmp esi, ebp
jae 0x4108a0
mov dword [esp + 0x14], ecx
cmp edi, dword [0x4b2f98]
jne 0x410a63
mov eax, dword [0x4b2f9c]
test eax, eax
je 0x4108cf
mov eax, dword [eax]
test eax, eax
mov ecx, eax
jne 0x4108d4
mov ecx, 0x4b2f08
call fcn.00415400
add dword [esp + 0x20], eax
cmp eax, ebx
jb 0x4108f7
mov ecx, dword [esp + 0x1c]
add ecx, 1
mov ebx, 1
shl ebx, cl
cmp eax, ebx
jae 0x4108e5
mov dword [esp + 0x1c], ecx
mov eax, dword [0x4b2f00]
add edi, 1
cmp edi, eax
jl 0x410850
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push 4
push esi
push ebx
push 3
push edi
push 0x4b259c
call fcn.00414840
push 0x18
push 4
push esi
push ebx
push 4
push edi
push 0x4b2eb8
call fcn.00414840
mov eax, dword [esp + 0x78]
push eax
call fcn.00402c70
xor eax, eax
push eax
mov dword [esp + 0x5c], 0xf0
mov dword [0x4b24d4], eax
mov dword [0x4b2494], eax
mov dword [esp + 0x58], eax
call fcn.004020f0
add esp, 0x3c
test eax, eax
je 0x410b66
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x14]
mov edi, esi
push 0
call fcn.004020f0
mov ebx, eax
mov ebp, dword [esi + ebx]
add esp, 4
test ebp, ebp
je 0x410b3c
mov eax, dword [esi + ebx + 0x14]
cmp dword [0x4b2494], eax
jge 0x4109a0
mov dword [0x4b2494], eax
xor esi, esi
test edi, edi
jle 0x410acf
mov edi, ebx
lea esp, [esp]
mov eax, dword [edi]
mov ecx, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410aaf
test dl, dl
je 0x4109d8
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410aaf
add eax, 2
add ecx, 2
test dl, dl
jne 0x4109b4
xor eax, eax
jmp 0x410ab4
cmp ecx, eax
jge 0x4107ba
test ecx, ecx
mov eax, dword [0x4b2f04]
mov edx, ecx
je 0x4109fe
test eax, eax
je 0x410a12
sub edx, 1
mov eax, dword [eax + 8]
jne 0x4109f2
test eax, eax
je 0x410a12
mov dword [0x4b2f98], ecx
mov dword [0x4b2f9c], eax
jmp 0x4107ae
mov dword [0x4b2f98], 0xffffffff
jmp 0x4107ba
cmp edi, eax
jge 0x41086b
test edi, edi
mov eax, dword [0x4b2f04]
mov ecx, edi
je 0x410a40
test eax, eax
je 0x410a54
sub ecx, 1
mov eax, dword [eax + 8]
jne 0x410a34
test eax, eax
je 0x410a54
mov dword [0x4b2f98], edi
mov dword [0x4b2f9c], eax
jmp 0x410861
mov dword [0x4b2f98], 0xffffffff
jmp 0x41086b
cmp edi, dword [0x4b2f00]
jge 0x4108cf
test edi, edi
mov eax, dword [0x4b2f04]
mov ecx, edi
je 0x410a8c
lea ebx, [ebx]
test eax, eax
je 0x410aa0
sub ecx, 1
mov eax, dword [eax + 8]
jne 0x410a80
test eax, eax
je 0x410aa0
mov dword [0x4b2f98], edi
mov dword [0x4b2f9c], eax
jmp 0x4108c3
mov dword [0x4b2f98], 0xffffffff
jmp 0x4108cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410b87
add esi, 1
add edi, 0x80
cmp esi, dword [esp + 0x1c]
jl 0x4109b0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
push ebp
push esi
push eax
call fcn.004068a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [ecx + ebx + 0x7c], esi
add esi, 1
mov dword [esp + 0x20], esi
mov ecx, dword [0x4b24d4]
cmp ecx, 8
jae 0x410b3c
xor eax, eax
test ecx, ecx
jle 0x410b20
mov edx, dword [esp + 0x14]
mov edx, dword [edx + ebx + 0x10]
lea ebx, [ebx]
cmp dword [eax*4 + 0x4b2460], edx
je 0x410b20
add eax, 1
cmp eax, ecx
jl 0x410b10
cmp eax, ecx
jne 0x410b3c
mov eax, dword [esp + 0x14]
mov edx, dword [eax + ebx + 0x10]
mov dword [ecx*4 + 0x4b2460], edx
add ecx, 1
mov dword [0x4b24d4], ecx
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add edi, 1
add esi, 0x80
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
call fcn.004020f0
add esp, 4
test eax, eax
jne 0x410978
mov ecx, dword [esp + 0x44]
push 0
push 6
call fcn.00427340
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp esi, dword [esp + 0x1c]
jge 0x410acf
mov edx, dword [esp + 0x14]
shl esi, 7
mov ecx, dword [esi + ebx + 0x7c]
mov dword [edx + ebx + 0x7c], ecx
jmp 0x410af1