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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x50]
mov eax, dword [esi]
mov ebp, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
cmp edi, eax
mov dword [esp + 0x10], 0x50
mov dword [esp + 0x58], 0
jg 0x452568
cmp edi, dword [esi + 4]
jl 0x452568
mov ebx, dword [esp + 0x54]
mov eax, dword [esi + 8]
cmp ebx, eax
jg 0x452568
cmp ebx, dword [esi + 0xc]
jl 0x452568
mov eax, dword [esi + 0xdc]
test eax, eax
jne 0x451c39
mov eax, edi
mov ecx, ebx
and eax, 1
and ecx, 1
shl eax, 1
mov edx, ebx
or eax, ecx
mov ecx, dword [esi + 0xd0]
mov dword [esp + 0x3c], edi
sar edx, 1
imul ecx, edx
mov eax, dword [esi + eax*4 + 0xa0]
mov edx, edi
add eax, ecx
mov dword [esp + 0x40], ebx
sar edx, 1
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x24]
mov dword [esp + 0x1c], eax
jmp 0x451c67
push esi
push 0
push ebx
push edi
call fcn.00446970
mov dword [esp + 0x3c], eax
mov eax, edi
cdq
sub eax, edx
add esp, 0x10
sar eax, 1
mov dword [esp + 0x3c], eax
mov eax, ebx
cdq
sub eax, edx
lea ecx, [esi + 0x4c]
sar eax, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], eax
lea edx, reloc.KERNEL32.dll_GetProcessHeap
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 5
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0xd0]
mov eax, edx
and edx, 1
sar eax, 1
imul eax, ecx
add eax, edx
push ecx
mov ecx, dword [esp + 0x30]
shl eax, 3
lea edx, [eax + ecx]
mov ecx, dword [esi + 0xb8]
add ecx, eax
push edx
push ecx
push ebp
call dword [0x50bb38]
mov eax, dword [esp + 0x34]
mov edx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov edi, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x40], edx
mov edx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x58], edx
mov edx, dword [eax]
mov eax, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
push ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], ecx
add edi, 0x100
call dword [0x50bb00]
add esp, 0x14
test ebx, ebx
je 0x451d30
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
lea eax, [ebp + 0x80]
push ebp
push eax
call dword [0x50bb10]
jmp 0x451d48
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [ebp + 0x80]
push ebp
push eax
call dword [0x50bb24]
add esp, 0x10
test eax, eax
jle 0x451e1a
mov ecx, dword [esp + 0x28]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x58]
or ecx, eax
lea eax, [ebp + 0x80]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x38]
push ecx
push eax
call fcn.0043b220
add esp, 8
shl eax, 4
test ebx, ebx
mov dword [esp + 0x38], eax
je 0x451da1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
lea eax, [ebp + 0x80]
push eax
push edi
call dword [0x50bb18]
jmp 0x451db9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [ebp + 0x80]
push edx
push eax
push edi
call dword [0x50bb1c]
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x451e15
mov ebx, 0x8000
mov dword [esp + 0x18], ebx
push ebp
call dword [0x50bc74]
imul eax, dword [esp + 0x38]
mov ecx, ebx
add esp, 4
imul ecx, ebx
shl eax, 1
cmp ecx, eax
jbe 0x451deb
xor ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
je 0x451dfb
or ebx, eax
jmp 0x451dcd
add ebx, 0x30
shr ebx, 6
push ebx
push edi
push ebp
call dword [0x50bc7c]
lea eax, [eax + eax*4]
add esp, 0xc
shr eax, 7
jmp 0x451e74
push 0x10
push edi
jmp 0x451e6a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], 0
test eax, eax
je 0x451e63
mov ebx, 0x8000
mov edi, ebx
push ebp
call dword [0x50bc74]
imul eax, dword [esp + 0x38]
mov edx, edi
add esp, 4
imul edx, edi
shl eax, 1
cmp edx, eax
jbe 0x451e4d
xor edi, ebx
shr ebx, 1
je 0x451e55
or edi, ebx
jmp 0x451e31
add edi, 0x30
shr edi, 6
push edi
push 0x485e7c
jmp 0x451e03
push 0x10
push 0x485e7c
push ebp
call dword [0x50bc54]
add esp, 0xc
imul eax, dword [esp + 0x44]
xor edx, edx
mov ecx, dword [esp + 0x38]
div dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x24]
add edx, eax
inc ebx
mov dword [ecx - 0xfc], eax
mov eax, dword [esp + 0x28]
add ecx, 4
dec eax
cmp eax, 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jg 0x451c81
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xdc]
mov edi, dword [esp + 0x50]
mov ebx, dword [esi + 0x98]
xor ecx, edx
mov eax, dword [esi + 0xd4]
shl edi, cl
mov edx, dword [esi + 0x9c]
sub edi, ebx
mov ebx, dword [esp + 0x54]
shl ebx, cl
lea ecx, [eax - 1]
mov eax, edi
sub ebx, edx
cdq
xor eax, edx
sub eax, edx
neg eax
sar eax, cl
mov dword [esp + 0x44], eax
mov eax, ebx
cdq
mov ecx, eax
mov eax, dword [esi + 0xd4]
xor ecx, edx
sub ecx, edx
neg ecx
mov edx, ecx
lea ecx, [eax - 1]
mov eax, dword [esp + 0x44]
sar edx, cl
mov ecx, dword [eax*4 + reloc.KERNEL32.dll_GetProcessHeap]
mov eax, dword [edx*4 + reloc.KERNEL32.dll_GetProcessHeap]
mov edx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esi + 0xd4]
neg edi
sbb edi, edi
and edi, eax
add ecx, edi
neg ebx
sbb ebx, ebx
and ebx, eax
lea ebx, [ecx + ebx - 2]
mov ecx, dword [esi + 0x14]
shl ebx, 4
add edx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x74]
lea eax, [edx + ebx]
cmp eax, ecx
jge 0x451f8b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
mov edi, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ebx, edi
xor ebx, ecx
and ebx, 0x20
xor ebx, edi
mov dword [esi + reloc.KERNEL32.dll_GetProcessHeap], ebx
jmp 0x451f97
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 0x78]
mov ebx, dword [esi + 0x18]
cmp edi, ebx
jge 0x451fc3
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edx
mov edi, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ebx, edi
xor ebx, ecx
and ebx, 0x10
xor ebx, edi
mov dword [esi + reloc.KERNEL32.dll_GetProcessHeap], ebx
mov edi, dword [esi + 0x7c]
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
jge 0x451fef
mov dword [esi + 0x1c], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edx
mov edi, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ebx, edi
xor ebx, ecx
and ebx, 8
xor ebx, edi
mov dword [esi + reloc.KERNEL32.dll_GetProcessHeap], ebx
mov edi, dword [esi + 0x80]
mov ebx, dword [esi + 0x20]
cmp edi, ebx
jge 0x45201e
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edx
mov eax, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov edx, eax
xor edx, ecx
and edx, 4
xor edx, eax
mov dword [esi + reloc.KERNEL32.dll_GetProcessHeap], edx
shr ecx, 2
shl ecx, 3
mov eax, 0x4807ec
sub eax, ecx
xor ecx, ecx
mov cl, byte [eax]
mov eax, dword [esp + 0x10]
sub ecx, 2
shl ecx, 4
add eax, ecx
mov ecx, dword [esi + 0x10]
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x452568
mov eax, dword [esp + 0x3c]
mov edi, dword [esi + 0xd0]
mov edx, eax
and edx, 3
sar eax, 1
mov ecx, dword [edx*4 + reloc.KERNEL32.dll_GetProcessHeap]
add ecx, eax
mov eax, dword [esp + 0x40]
mov edx, eax
and edx, 3
sar eax, 1
mov edx, dword [edx*4 + reloc.KERNEL32.dll_GetProcessHeap]
add edx, eax
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x28], eax
mov eax, ecx
sar eax, 1
shr edi, 1
mov ebx, edx
mov dword [esp + 0x34], eax
sar ebx, 1
mov eax, edi
mov dword [esp + 0x24], ebx
imul eax, ebx
mov ebx, dword [esi + 0xb0]
and ecx, 1
and edx, 1
add eax, ebx
mov ebx, dword [esp + 0x34]
lea ecx, [edx + ecx*2]
add eax, ebx
mov dword [esp + 0x20], ecx
sub ecx, 0
je 0x4520f6
dec ecx
je 0x4520dd
dec ecx
mov ecx, dword [esi + 0x94]
push ecx
push edi
mov edi, dword [esp + 0x30]
push eax
push edi
je 0x4520d5
call dword [0x50bb80]
jmp 0x4520f1
call dword [0x50bb74]
jmp 0x4520f1
mov ecx, dword [esi + 0x94]
push ecx
push edi
mov edi, dword [esp + 0x30]
push eax
push edi
call dword [0x50bb78]
add esp, 0x10
mov eax, edi
mov ecx, dword [esi + 0xd0]
mov edx, dword [esi + 0xbc]
shr ecx, 1
push ecx
push eax
push edx
push ebp
call dword [0x50bb38]
mov eax, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov edx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov edi, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x50], eax
mov eax, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x28], eax
mov eax, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
push ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], eax
add edi, 0x100
call dword [0x50bb00]
add esp, 0x14
test ebx, ebx
je 0x452192
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea ebx, [ebp + 0x80]
push ebp
push ebx
call dword [0x50bb10]
jmp 0x4521aa
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ebx, [ebp + 0x80]
push ebp
push ebx
call dword [0x50bb24]
add esp, 0x10
test eax, eax
jle 0x452264
mov edx, dword [esp + 0x58]
or edx, 2
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x48]
push edx
push ebx
call fcn.0043b220
shl eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
add esp, 8
test eax, eax
je 0x4521f1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebx
push edi
call dword [0x50bb18]
jmp 0x452203
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push ebx
push edi
call dword [0x50bb1c]
mov eax, dword [esp + 0x50]
add esp, 0x10
test eax, eax
je 0x45225f
mov ebx, 0x8000
mov dword [esp + 0x18], ebx
push ebp
call dword [0x50bc74]
imul eax, dword [esp + 0x40]
mov ecx, ebx
add esp, 4
imul ecx, ebx
shl eax, 1
cmp ecx, eax
jbe 0x452235
xor ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
je 0x452245
or ebx, eax
jmp 0x452217
add ebx, 0x30
shr ebx, 6
push ebx
push edi
push ebp
call dword [0x50bc7c]
lea eax, [eax + eax*4]
add esp, 0xc
shr eax, 7
jmp 0x4522be
push 0x10
push edi
jmp 0x4522b4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0
test eax, eax
je 0x4522ad
mov ebx, 0x8000
mov edi, ebx
push ebp
call dword [0x50bc74]
imul eax, dword [esp + 0x40]
mov edx, edi
add esp, 4
imul edx, edi
shl eax, 1
cmp edx, eax
jbe 0x452297
xor edi, ebx
shr ebx, 1
je 0x45229f
or edi, ebx
jmp 0x45227b
add edi, 0x30
shr edi, 6
push edi
push 0x485e7c
jmp 0x45224d
push 0x10
push 0x485e7c
push ebp
call dword [0x50bc54]
add esp, 0xc
imul eax, dword [esp + 0x30]
xor edx, edx
mov edi, dword [esp + 0x38]
div dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x10]
add ecx, edi
add eax, ecx
mov ecx, dword [esi + 0x10]
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x452568
mov ecx, dword [esi + 0xd0]
mov edx, dword [esi + 0xb4]
shr ecx, 1
mov eax, ecx
mov ebx, dword [esi + 0x94]
imul eax, dword [esp + 0x24]
mov edi, dword [esi + 0xc4]
add eax, edx
mov edx, dword [esp + 0x34]
add eax, edx
mov edx, dword [esp + 0x20]
sub edx, 0
je 0x452341
dec edx
je 0x452332
push ebx
push ecx
dec edx
push eax
push edi
je 0x45232a
call dword [0x50bb80]
jmp 0x45233c
call dword [0x50bb74]
jmp 0x45233c
push ebx
push ecx
push eax
push edi
call dword [0x50bb78]
add esp, 0x10
mov eax, edi
mov edx, dword [esi + 0xd0]
shr edx, 1
push edx
push eax
mov eax, dword [esi + 0xc0]
push eax
push ebp
call dword [0x50bb38]
mov ecx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov edx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov edi, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x40], eax
mov eax, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + reloc.KERNEL32.dll_GetProcessHeap]
push ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], ecx
add edi, 0x100
call dword [0x50bb00]
add esp, 0x14
test ebx, ebx
je 0x4523dd
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ebx, [ebp + 0x80]
push ebp
push ebx
call dword [0x50bb10]
jmp 0x4523f5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea ebx, [ebp + 0x80]
push ebp
push ebx
call dword [0x50bb24]
add esp, 0x10
test eax, eax
jle 0x4524af
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
or edx, 1
push eax
push ebx
mov dword [esp + 0x60], edx
call fcn.0043b220
shl eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
add esp, 8
test eax, eax
je 0x45243c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
push edi
call dword [0x50bb18]
jmp 0x45244e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebx
push edi
call dword [0x50bb1c]
mov eax, dword [esp + 0x50]
add esp, 0x10
test eax, eax
je 0x4524aa
mov ebx, 0x8000
mov dword [esp + 0x18], ebx
push ebp
call dword [0x50bc74]
imul eax, dword [esp + 0x40]
mov edx, ebx
add esp, 4
imul edx, ebx
shl eax, 1
cmp edx, eax
jbe 0x452480
xor ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x18], eax
je 0x452490
or ebx, eax
jmp 0x452462
add ebx, 0x30
shr ebx, 6
push ebx
push edi
push ebp
call dword [0x50bc7c]
lea eax, [eax + eax*4]
add esp, 0xc
shr eax, 7
jmp 0x452509
push 0x10
push edi
jmp 0x4524ff
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0
test eax, eax
je 0x4524f8
mov ebx, 0x8000
mov edi, ebx
push ebp
call dword [0x50bc74]
imul eax, dword [esp + 0x40]
mov ecx, edi
add esp, 4
imul ecx, edi
shl eax, 1
cmp ecx, eax
jbe 0x4524e2
xor edi, ebx
shr ebx, 1
je 0x4524ea
or edi, ebx
jmp 0x4524c6
add edi, 0x30
shr edi, 6
push edi
push 0x485e7c
jmp 0x452498
push 0x10
push 0x485e7c
push ebp
call dword [0x50bc54]
add esp, 0xc
mov ecx, dword [esp + 0x58]
imul eax, dword [esp + 0x34]
mov edx, ecx
xor ebx, ebx
and edx, 3
shl edx, 6
mov bl, byte [edx + 0x48d964]
xor edx, edx
div dword [esp + 0x30]
shl ebx, 4
mov edx, eax
mov eax, dword [esp + 0x38]
add eax, ebx
add edx, eax
mov eax, dword [esp + 0x10]
lea eax, [eax + edx - 0x10]
mov edx, dword [esi + 0x10]
cmp eax, edx
jge 0x452568
mov edx, dword [esp + 0x50]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x84], eax
mov dword [esi + reloc.KERNEL32.dll_GetProcessHeap], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret