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

Disassembly:
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xdc]
lea esi, [edi + 0x10]
lea eax, [esi + 0x40]
push eax
mov dword [esp + 0x18], ecx
call fcn.0045f5d0
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x45e878
push 0
mov ecx, esi
call fcn.00458080
cmp byte [esi], 0
je 0x45eba8
mov ecx, dword [esp + 0xdc]
lea eax, [ecx + 0x10]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x45eba8
mov edx, dword [esp + 0xdc]
mov cl, byte [edx + 0x13]
test cl, cl
lea eax, [edx + 0x10]
jne 0x45eba8
mov ebx, edx
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x45e9af
mov eax, dword [esp + 0x14]
lea esi, [eax + 0x128]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45e8db
cmp eax, edi
jne 0x45e8db
inc dword [esi + 0x18]
jmp 0x45e8ff
mov al, byte [esi + 5]
test al, al
je 0x45e8ee
lea ecx, [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x45e8f5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], edi
mov ebp, dword [esi + 0x48]
add ebx, 0x64
cmp ebp, 0xffffffff
jne 0x45e920
mov ecx, esi
call fcn.00462b90
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, esi
call fcn.00462960
jmp 0x45e965
mov ecx, dword [esi + 0x4c]
mov edi, ebp
imul edi, edi, 0x34
mov edx, dword [edi + ecx]
lea eax, [edi + ecx]
mov dword [esi + 0x48], edx
mov dword [eax], 0xffffffff
mov eax, dword [esi + 0x4c]
mov dword [edi + eax + 4], 0xffffffff
mov ecx, dword [esi + 0x4c]
push ebx
lea ecx, [edi + ecx + 0xc]
call fcn.00499b00
mov edx, dword [esi + 0x4c]
mov eax, dword [esp + 0x10]
mov dword [edi + edx + 8], eax
inc dword [esi + 0x3c]
push ebp
mov ecx, esi
call fcn.00463690
mov eax, dword [esi + 0x18]
test eax, eax
je 0x45e986
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45e986
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x45e986
dec dword [esi + 0x18]
jmp 0x45eba8
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], 0
je 0x45e9a3
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45eba8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
jmp 0x45eba8
cmp eax, 2
jne 0x45eaaa
mov eax, dword [esp + 0x14]
lea esi, [eax + 0x18c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45e9da
cmp eax, edi
jne 0x45e9da
inc dword [esi + 0x18]
jmp 0x45e9fe
mov al, byte [esi + 5]
test al, al
je 0x45e9ed
lea ecx, [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x45e9f4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], edi
mov ebp, dword [esi + 0x48]
add ebx, 0x64
cmp ebp, 0xffffffff
jne 0x45ea1f
mov ecx, esi
call fcn.00462b90
push ebx
mov ebx, dword [esp + 0x14]
push ebx
mov ecx, esi
call fcn.00462960
jmp 0x45ea63
mov eax, dword [esi + 0x4c]
mov edi, ebp
imul edi, edi, 0x34
mov ecx, dword [eax + edi]
add eax, edi
mov dword [esi + 0x48], ecx
mov dword [eax], 0xffffffff
mov edx, dword [esi + 0x4c]
mov dword [edi + edx + 4], 0xffffffff
mov eax, dword [esi + 0x4c]
push ebx
lea ecx, [edi + eax + 0xc]
call fcn.00499b00
mov ecx, dword [esi + 0x4c]
mov ebx, dword [esp + 0x10]
mov dword [edi + ecx + 8], ebx
inc dword [esi + 0x3c]
push ebp
mov ecx, esi
call fcn.00463690
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 8]
cmp ebx, ecx
je 0x45e965
xor edx, edx
mov eax, ecx
div dword [esi + 0x58]
mov eax, dword [esi + 0x60]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x45e965
cmp ecx, dword [edx + 8]
je 0x45ea97
mov edx, dword [edx]
test edx, edx
jne 0x45ea87
jmp 0x45e965
add edx, 4
test edx, edx
je 0x45e965
mov ecx, dword [edx]
push ecx
jmp 0x45e95e
cmp eax, 3
jne 0x45eba8
mov eax, dword [esp + 0x14]
lea esi, [eax + 0x1f0]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45ead5
cmp eax, edi
jne 0x45ead5
inc dword [esi + 0x18]
jmp 0x45eaf9
mov al, byte [esi + 5]
test al, al
je 0x45eae8
lea ecx, [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x45eaef
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], edi
mov eax, dword [esp + 0xdc]
mov ebp, dword [esi + 0x48]
lea ebx, [eax + 0x10]
add ebx, 0x54
cmp ebp, 0xffffffff
jne 0x45eb24
mov ecx, esi
call fcn.00462b90
mov ecx, dword [esp + 0x10]
push ebx
push ecx
mov ecx, esi
call fcn.00462960
jmp 0x45eb69
mov edx, dword [esi + 0x4c]
mov edi, ebp
imul edi, edi, 0x34
mov ecx, dword [edi + edx]
lea eax, [edi + edx]
mov dword [esi + 0x48], ecx
mov dword [eax], 0xffffffff
mov edx, dword [esi + 0x4c]
mov dword [edi + edx + 4], 0xffffffff
mov eax, dword [esi + 0x4c]
push ebx
lea ecx, [edi + eax + 0xc]
call fcn.00499b00
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x10]
mov dword [edi + ecx + 8], edx
inc dword [esi + 0x3c]
push ebp
mov ecx, esi
call fcn.00463690
mov eax, dword [esi + 0x18]
test eax, eax
je 0x45eb87
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45eb87
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x45eb87
dec dword [esi + 0x18]
jmp 0x45eba8
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], 0
je 0x45eba1
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45eba8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea esi, [ebx + 0xe8]
call ebp
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45ebcc
cmp eax, edi
jne 0x45ebcc
inc dword [esi + 0x18]
jmp 0x45ebf0
mov al, byte [esi + 5]
test al, al
je 0x45ebdf
lea ecx, [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x45ebe6
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], edi
mov eax, dword [ebx + 0x124]
mov ecx, dword [esp + 0x10]
shr eax, 1
cmp ecx, eax
jb 0x45ec68
mov eax, dword [esi + 0x18]
test eax, eax
je 0x45ec2b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45ec2b
call ebp
cmp dword [esi + 0x14], eax
jne 0x45ec2b
mov eax, dword [esi + 0x18]
dec eax
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc8
ret 4
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], 0
je 0x45ec52
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc8
ret 4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc8
ret 4
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0xdc]
mov edx, dword [eax + 0x120]
mov edi, ebp
lea eax, [ecx + 0x10]
mov cl, byte [eax + 3]
shl edi, 7
add edi, edx
test cl, cl
je 0x45ed60
cmp byte [edi], 0
jne 0x45ed60
push 1
push eax
mov ecx, edi
call fcn.004574a0
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call fcn.0045c8a0
push ebx
push ebx
push ebx
lea ecx, [esp + 0xb4]
call fcn.004998c0
lea edx, [edi + 0x40]
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xd4], 0xffffffff
mov dword [esp + 0x1c], vtable.ImageLoaderJob.0
call fcn.00436200
lea ecx, [esp + 0x18]
call fcn.0045a630
cmp dword [esp + 0xd0], ebx
jne 0x45ed0c
lea eax, [esp + 0x7c]
push eax
lea ecx, [edi + 0x54]
call fcn.00499b00
mov ecx, edi
mov byte [edi], 1
call fcn.004578b0
lea ecx, [esp + 0xa8]
call fcn.00499ac0
lea ecx, [esp + 0x7c]
call fcn.00499ac0
lea ecx, [esp + 0x78]
call fcn.004039f0
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], ebx
call fcn.004039f0
lea ecx, [esp + 0x70]
mov dword [esp + 0x74], ebx
call fcn.004039f0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], ebx
call fcn.004039f0
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], ebx
call fcn.004039f0
jmp 0x45ed6c
push 1
push eax
mov ecx, edi
call fcn.004574a0
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x45ed86
cmp dword [esi + 0x14], ebx
je 0x45ed86
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
jne 0x45ed86
dec dword [esi + 0x18]
jmp 0x45eda3
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x14], ebx
je 0x45ed9c
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45eda3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
cmp ebp, 0xffffffff
je 0x45edbd
mov eax, dword [esp + 0xdc]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
call fcn.00462180
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc8
ret 4