Function at 0x4696d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x477fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [ebp + 8]
fldz
and eax, 0xc0000000
fstp dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
and eax, 0xc0000000
xor esi, esi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x5c]
push eax
mov dword [edi + 0x60], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], 1
call fcn.0046e0e0
mov dword [esp + 0x88], esi
mov eax, dword [edi + 0x20]
mov ebx, dword [edi + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x44], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], ebx
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x58], ecx
test ebx, ebx
je 0x469783
cmp ebx, eax
je 0x469789
call dword [0x47c2fc]
cmp dword [esp + 0x58], esi
je 0x469a00
test ebx, ebx
jne 0x46980a
call dword [0x47c2fc]
xor eax, eax
mov edx, dword [esp + 0x58]
cmp edx, dword [eax + 0x14]
jne 0x4697ae
call dword [0x47c2fc]
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4699d1
mov ecx, eax
mov esi, dword [ecx + 4]
cmp dword [esi + 4], 0
je 0x4699d1
mov edx, eax
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4697e6
call fcn.004681a0
test eax, eax
je 0x4699d1
cmp dword [esi + 0x14], 0
fld dword [esi + 0x4c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fldz
jne 0x46980e
fcom dword [esi + 0x4c]
fnstsw ax
test ah, 5
jp 0x46980e
mov ebx, 1
jmp 0x469810
mov eax, dword [ebx]
jmp 0x46979f
xor ebx, ebx
cmp dword [esp + 0x30], 0x40000000
jne 0x4698a7
test ebx, ebx
je 0x4698b2
fcomp dword [esi + 0x4c]
fnstsw ax
test ah, 5
jp 0x46988b
lea edi, [esi + 0x50]
push edi
lea ebx, [esp + 0x60]
call fcn.0046d840
fld dword [esi + 0x4c]
fadd dword [eax]
push edi
fstp dword [eax]
call fcn.0046d840
mov ecx, dword [esi + 0x1c]
add dword [eax + 4], ecx
add eax, 4
push edi
call fcn.0046d840
mov edx, dword [esi + 0x24]
add dword [eax + 8], edx
mov edi, dword [esp + 0x1c]
add eax, 8
mov eax, dword [esi + 0x1c]
add dword [esp + 0x44], eax
mov eax, dword [esi + 0x24]
mov ecx, SysReAllocString
sub ecx, eax
cmp ecx, dword [esp + 0x28]
jle 0x469883
add dword [esp + 0x28], eax
jmp 0x46988b
mov dword [esp + 0x28], SysStringLen
mov edx, dword [esi + 0x44]
add edx, dword [esi + 0x3c]
mov eax, dword [edi + 0x60]
lea ecx, [edx + eax]
cmp eax, ecx
jg 0x46989d
mov eax, ecx
mov dword [esp + 0x4c], 1
jmp 0x46990c
test ebx, ebx
je 0x4698b2
mov dword [esi + 0x14], 0xffffffff
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x44
jp 0x4698c2
mov eax, dword [edi + 0x60]
jmp 0x4698c4
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push ecx
push edx
mov eax, edi
call fcn.00469030
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x18]
and eax, 0xffffff
test ebx, ebx
je 0x4698f9
add dword [esp + 0x40], eax
mov dword [esi + 0x14], 0
mov edx, dword [esi + 0x44]
add edx, dword [esi + 0x3c]
mov ecx, dword [edi + 0x60]
add edx, ecx
add eax, edx
cmp ecx, eax
jle 0x46990c
mov eax, ecx
cmp dword [esp + 0x3c], 0x40000000
mov dword [edi + 0x60], eax
mov dword [esp + 0x38], 0
je 0x469934
cmp dword [esi + 0x10], 0xfffffffe
jne 0x469934
mov eax, 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov edx, dword [esi + 0x40]
add edx, dword [esi + 0x38]
mov ecx, dword [eax + 0x14]
and ecx, 0xffffff
add ecx, edx
cmp dword [esp + 0x10], ecx
jg 0x469956
mov dword [esp + 0x10], ecx
movsx ebx, word [eax + 0x1a]
mov eax, dword [eax + 0x14]
and ebx, 0xffffff00
and eax, 0xff000000
or ebx, eax
or dword [esp + 0x2c], ebx
cmp dword [esp + 0x20], 0
je 0x469983
cmp dword [esi + 0x10], 0xfffffffe
mov dword [esp + 0x20], 1
je 0x46998b
mov dword [esp + 0x20], 0
fldz
fcomp dword [esi + 0x4c]
mov esi, dword [esp + 0x38]
fnstsw ax
test ah, 5
mov eax, edx
jp 0x4699b9
test esi, esi
jne 0x4699a3
mov eax, ecx
cmp dword [esp + 0x34], eax
jg 0x4699d1
test esi, esi
je 0x4699b3
mov dword [esp + 0x34], edx
jmp 0x4699d1
mov dword [esp + 0x34], ecx
jmp 0x4699d1
test esi, esi
jne 0x4699bf
mov eax, ecx
cmp dword [esp + 0x14], eax
jg 0x4699d1
mov dword [esp + 0x14], edx
test esi, esi
jne 0x4699d1
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x4699fb
call dword [0x47c2fc]
xor eax, eax
mov esi, dword [esp + 0x58]
cmp esi, dword [eax + 0x14]
jne 0x4699f0
call dword [0x47c2fc]
mov ecx, dword [esi]
mov ebx, dword [esp + 0x54]
jmp 0x469771
mov eax, dword [eax]
jmp 0x4699e1
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x34]
add edx, dword [eax + 0x2c]
mov eax, dword [edi]
add dword [edi + 0x60], edx
mov edx, dword [eax + 0x1c]
mov esi, dword [edi + 0x60]
mov ecx, edi
call edx
cmp esi, eax
jg 0x469a27
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x30]
and eax, 0x3fffffff
cmp ecx, 0x80000000
je 0x469a49
cmp ecx, 0x40000000
jne 0x469a58
mov dword [esp + 0x30], eax
jmp 0x469a5c
cmp eax, esi
jge 0x469a58
or eax, 0x1000000
mov dword [esp + 0x30], eax
jmp 0x469a5c
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x30]
and eax, 0xffffff
sub eax, dword [edi + 0x60]
add eax, dword [esp + 0x40]
cmp dword [esp + 0x4c], 0
mov ecx, eax
mov dword [esp + 0x38], ecx
jne 0x469a9d
fldz
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 5
jnp 0x469a9d
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x14], eax
jg 0x469e2c
mov dword [esp + 0x14], eax
jmp 0x469e2c
mov eax, dword [esp + 0x78]
fld dword [esp + 0x24]
fstp dword [esp + 0x40]
mov dword [esp + 0x18], 0xffffffff
cmp eax, 1
jbe 0x469c99
cmp ecx, dword [esp + 0x28]
jl 0x469acd
mov dword [esp + 0x18], 0x8000000
jmp 0x469bb9
mov eax, ecx
sub eax, dword [esp + 0x44]
mov dword [esp + 0x34], eax
test eax, eax
jle 0x469bb9
mov eax, dword [esp + 0x74]
mov ebx, dword [eax]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], esi
mov edi, dword [esp + 0x74]
test esi, esi
je 0x469aff
cmp esi, dword [esp + 0x5c]
je 0x469b05
call dword [0x47c2fc]
cmp ebx, edi
je 0x469b85
test esi, esi
jne 0x469b79
call dword [0x47c2fc]
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x469b20
call dword [0x47c2fc]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x18], ecx
test esi, esi
jne 0x469b7d
call dword [0x47c2fc]
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x469b3e
call dword [0x47c2fc]
test esi, esi
jne 0x469b81
call dword [0x47c2fc]
cmp ebx, dword [esi + 0x18]
jne 0x469b53
call dword [0x47c2fc]
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x14]
cmp eax, dword [esp + 0x34]
jge 0x469b85
sub dword [esp + 0x34], eax
lea esi, [esp + 0x54]
call fcn.0046fab0
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
jmp 0x469af1
mov eax, dword [esi]
jmp 0x469b15
mov eax, dword [esi]
jmp 0x469b33
mov esi, dword [esi]
jmp 0x469b48
cmp dword [esp + 0x18], 0xffffffff
je 0x469bb5
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0x60]
call fcn.0046d840
mov eax, dword [eax + 4]
add eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x18]
push eax
call fcn.0046d840
fld dword [eax]
fstp dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
mov dword [edi + 0x60], 0
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0xc]
test ebx, ebx
je 0x469bde
cmp ebx, eax
je 0x469be4
call dword [0x47c2fc]
cmp dword [esp + 0x48], esi
je 0x469e20
test ebx, ebx
jne 0x469cd2
call dword [0x47c2fc]
xor eax, eax
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax + 0x14]
jne 0x469c0d
call dword [0x47c2fc]
mov edx, dword [esp + 0x48]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x469dea
mov esi, dword [ebx + 4]
cmp dword [esi + 4], 0
je 0x469dea
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x469c3d
call fcn.004681a0
test eax, eax
je 0x469dea
fld dword [esi + 0x4c]
fstp dword [esp + 0x4c]
fldz
fld dword [esp + 0x4c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x469d5f
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edx
jne 0x469cd9
fild dword [esp + 0x38]
fmul st(1)
fld dword [esp + 0x40]
fld st(0)
fdivp st(2)
fxch st(1)
call fcn.00474560
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jge 0x469c84
mov eax, ecx
mov ecx, dword [esi + 0x24]
cmp eax, ecx
jle 0x469c8d
mov eax, ecx
sub dword [esp + 0x38], eax
fsubrp st(1)
fstp dword [esp + 0x40]
jmp 0x469ce9
test eax, eax
je 0x469bb9
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x74]
mov esi, dword [ecx]
test eax, eax
jne 0x469cce
call dword [0x47c2fc]
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x469cc2
call dword [0x47c2fc]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x18], edx
jmp 0x469bb9
mov eax, dword [eax]
jmp 0x469cb7
mov eax, dword [ebx]
jmp 0x469bfe
cmp ecx, edx
fstp st(0)
jge 0x469ce4
mov eax, dword [esi + 0x24]
jmp 0x469ce9
jle 0x469ce9
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x14], 0
jne 0x469cf3
mov ecx, eax
jmp 0x469d01
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx + 0x18]
and ecx, 0xffffff
add ecx, eax
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 4]
xor edx, edx
test ecx, ecx
setl dl
dec edx
and edx, ecx
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x28]
mov edi, dword [esi + 0x10]
add ecx, dword [esi + 0x40]
and edx, 0x3fffffff
add ecx, dword [esi + 0x38]
or edx, 0x40000000
push edx
push ecx
mov ecx, dword [ebp + 8]
call fcn.00468f80
push eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
mov ecx, ebx
call edx
mov eax, dword [ebx + 8]
movsx ecx, word [eax + 0x1a]
mov edx, dword [eax + 0x14]
and ecx, 0xffffff00
and edx, 0xff000000
or ecx, edx
or dword [esp + 0x2c], ecx
jmp 0x469d61
fstp st(0)
mov edi, dword [ebx + 8]
mov ecx, dword [esi + 0x40]
add ecx, dword [esi + 0x38]
mov eax, dword [edi + 0x14]
and eax, 0xffffff
add eax, ecx
cmp dword [esp + 0x10], eax
jg 0x469d7e
mov dword [esp + 0x10], eax
cmp dword [esp + 0x3c], 0x40000000
je 0x469d94
cmp dword [esi + 0x10], 0xfffffffe
jne 0x469d94
mov bl, 1
mov edx, ecx
jmp 0x469d98
xor bl, bl
mov edx, eax
cmp dword [esp + 0x14], edx
jg 0x469daa
mov dword [esp + 0x14], ecx
test bl, bl
jne 0x469daa
mov dword [esp + 0x14], eax
cmp dword [esp + 0x20], 0
je 0x469dbf
cmp dword [esi + 0x10], 0xfffffffe
mov dword [esp + 0x20], 1
je 0x469dc7
mov dword [esp + 0x20], 0
mov ecx, dword [edi + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x60]
and ecx, 0xffffff
add ecx, dword [esi + 0x44]
add ecx, dword [esi + 0x3c]
add ecx, eax
cmp eax, ecx
jg 0x469de5
mov eax, ecx
mov dword [edx + 0x60], eax
mov edi, edx
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x469e1c
call dword [0x47c2fc]
xor eax, eax
mov edx, dword [esp + 0x48]
cmp edx, dword [eax + 0x14]
jne 0x469e09
call dword [0x47c2fc]
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x48], ecx
jmp 0x469bd0
mov eax, dword [eax]
jmp 0x469dfa
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x34]
add edx, dword [eax + 0x2c]
add dword [edi + 0x60], edx
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x3c]
jne 0x469e47
cmp ebx, 0x40000000
je 0x469e47
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x30]
add ecx, dword [eax + 0x28]
mov esi, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
add esi, ecx
mov ecx, edi
call eax
cmp esi, eax
jg 0x469e72
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
mov esi, eax
mov ecx, dword [ebp + 8]
and ecx, 0x3fffffff
cmp ebx, 0x80000000
je 0x469ef0
cmp ebx, 0x40000000
je 0x469e8d
mov ecx, esi
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 8]
and edx, 0xff000000
or edx, ecx
cmp dword [esp + 0x50], 0
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
je 0x469eb7
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.004694d0
lea esi, [esp + 0x5c]
mov dword [esp + 0x88], 1
call fcn.0046e330
mov eax, dword [esp + 0x5c]
push eax
call fcn.0047284c
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ecx, esi
jge 0x469e8b
or ecx, 0x1000000
jmp 0x469e8d