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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, eax
mov dword [esp + 0x2c], edx
mov esi, ecx
cmp ecx, 2
jle 0x45b9cf
mov edi, dword [esp + 0xd0]
add edi, 8
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], ecx
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x558]
mov esi, eax
cmp byte [eax], 0x2d
je 0x45b93d
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.00405190
test eax, eax
je 0x45b92d
mov ebp, dword [ebx]
mov ecx, ebp
cmp ebp, eax
je 0x45b985
test byte [eax + 0x98], 2
jne 0x45b94c
mov eax, dword [eax + 0x20]
cmp ebp, eax
je 0x45b7b4
test byte [ebp + 0x98], 2
je 0x45b7ad
jmp 0x45b8e4
test byte [ecx + 0x98], 2
jne 0x45b8e4
mov ecx, dword [ecx + 0x20]
cmp eax, ecx
jne 0x45b7a0
inc dword [esp + 0x28]
add edi, 4
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x28], ecx
jne 0x45b739
mov esi, ecx
mov edx, ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xd0]
lea eax, [ecx + eax*4]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], ecx
mov ecx, 0x60
xor eax, eax
mov edi, dword [esp + 0x24]
rep stosb byte es:[edi], al
sub esi, dword [esp + 0x28]
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.00481570
test eax, eax
jne 0x45b92d
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x45bd88
mov edi, dword [ebx + 0x7c]
test edi, edi
jle 0x45b878
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
cmp esi, dword [eax]
je 0x45bdf0
xor eax, eax
jmp 0x45b873
mov edx, dword [ecx + eax*4]
cmp esi, dword [edx]
je 0x45b9ec
inc eax
cmp eax, edi
jne 0x45b868
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x36c]
mov dword [esp + 0x14], 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__is_not_managed_by
mov eax, dword [esi + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.window__
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x120]
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
lea ecx, [esp + 0x50]
mov dword [esp], ecx
call fcn.004818c8
mov eax, 1
jmp 0x45b932
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x36c]
mov dword [esp + 0x14], 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x60a26a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x60a25f
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x120]
mov eax, 1
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x40], edi
mov esi, dword [esp + 0x30]
mov edx, dword [ebx]
jmp 0x45b7df
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x36c]
mov dword [esp + 0x14], 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x60a26a
mov dword [esp + 8], esi
mov dword [esp + 4], str.cant_add_toplevel
jmp 0x45b91b
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x36c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str._to_itself
mov dword [esp + 8], esi
mov dword [esp + 4], 0x60a25f
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x120]
mov eax, 1
jmp 0x45b932
mov edx, dword [esp + 0xd0]
add edx, 8
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], 2
mov edx, dword [eax]
jmp 0x45b7df
inc eax
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0xffffffff
je 0x45b878
mov edx, dword [esp + 0x28]
sub edx, 2
mov dword [esp + 0x38], edx
mov eax, edx
shl eax, 2
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], 0
je 0x45bbea
mov dword [esp + 0x30], 0
mov esi, eax
mov dword [esp + 0x28], ebx
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov ebx, dword [eax]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0xd0]
mov eax, dword [ecx + edx*4 + 8]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x558]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.00405190
mov ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x7c]
test eax, eax
jle 0x45bab0
mov ebp, dword [ecx + 0x78]
xor edx, edx
lea esi, [esi]
lea edi, [edx*4]
mov ecx, dword [ebp + edx*4]
test ecx, ecx
je 0x45baab
cmp dword [ecx], ebx
je 0x45bcd8
inc edx
cmp edx, eax
jne 0x45ba94
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x45badc
mov eax, dword [esi]
cmp dword [eax], ebx
je 0x45bbd4
xor eax, eax
mov ecx, dword [esp + 0x34]
jmp 0x45bad7
mov edx, dword [esi + eax*4]
cmp dword [edx], ebx
je 0x45bbd4
inc eax
cmp eax, ecx
jne 0x45bacc
mov dword [esp], 0x60
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov ebp, eax
mov ecx, 0x60
mov edi, eax
xor eax, eax
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.004810f8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.00481570
mov dword [ebp], ebx
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x54], eax
mov edx, dword [ebx + 0x48]
shl edx, 1
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x45bd7b
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x45bd6d
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 4]
test eax, eax
js 0x45bd61
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x45aae0
mov dword [esp + 4], 0x20000
mov dword [esp], ebx
call fcn.00416f20
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x60ab0c
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.0047f330
mov edx, dword [esp + 0x34]
mov dword [esi + edx*4], ebp
inc edx
mov dword [esp + 0x34], edx
inc dword [esp + 0x48]
nop
inc dword [esp + 0x30]
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x38], edx
jne 0x45ba48
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x48]
add esi, dword [ebx + 0x7c]
shl esi, 2
mov dword [esp], esi
mov eax, dword [0x68bb7c]
call dword [eax + 0x14]
mov ebp, eax
xor eax, eax
mov edi, ebp
mov ecx, esi
rep stosb byte es:[edi], al
cmp dword [esp + 0x3c], 0xffffffff
je 0x45bdbc
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x45bde7
xor eax, eax
xor edx, edx
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x78]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x45bc37
mov dword [ebp + eax*4], ecx
inc eax
inc edx
cmp edx, esi
jne 0x45bc28
lea edx, [eax*4]
add edx, ebp
mov ecx, dword [esp + 0x34]
shl ecx, 2
mov edi, edx
mov esi, dword [esp + 0x4c]
rep movsb byte es:[edi], byte [esi]
add eax, dword [esp + 0x38]
mov ecx, dword [ebx + 0x7c]
mov dword [esp + 0x2c], ecx
mov edi, dword [ebx + 0x78]
cmp dword [esp + 0x3c], ecx
jge 0x45bc8d
mov ecx, dword [esp + 0x3c]
shl ecx, 2
mov edx, dword [esp + 0x3c]
nop
mov esi, dword [edi + ecx]
test esi, esi
je 0x45bc83
mov dword [ebp + eax*4], esi
inc eax
mov edi, dword [ebx + 0x78]
inc edx
add ecx, 4
cmp edx, dword [esp + 0x2c]
jne 0x45bc74
mov dword [esp], edi
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x18]
mov dword [ebx + 0x78], ebp
mov edx, dword [esp + 0x48]
add dword [ebx + 0x7c], edx
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
lea ecx, [esp + 0x50]
mov dword [esp], ecx
call fcn.004818c8
mov eax, ebx
call fcn.0045a6e0
xor eax, eax
jmp 0x45b932
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.00481570
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x78]
mov eax, dword [eax + edi]
mov edx, dword [eax + 4]
test edx, edx
js 0x45bd58
cmp dword [esp + 0x3c], 0xffffffff
je 0x45bbd4
mov edx, dword [esp + 0x34]
mov dword [esi + edx*4], eax
inc edx
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x78]
mov dword [eax + edi], 0
jmp 0x45bbd4
mov dword [eax + 4], 0
jmp 0x45bd2e
mov dword [ebp + 4], 0
jmp 0x45bb90
add edx, dword [ebx + 0xbc]
mov dword [ebp + 0x30], edx
jmp 0x45bb85
mov eax, dword [ebx + 0xb8]
add eax, edx
jmp 0x45bb74
mov esi, dword [esp + 0xac]
test esi, esi
je 0x45be06
mov edi, dword [ebx + 0x7c]
test edi, edi
jle 0x45b878
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
cmp esi, dword [eax]
je 0x45be13
xor eax, eax
jmp 0x45bdb2
mov edx, dword [ecx + eax*4]
cmp esi, dword [edx]
je 0x45bdfd
inc eax
cmp eax, edi
jne 0x45bdab
jmp 0x45b878
mov ecx, dword [ebx + 0x7c]
shl ecx, 2
mov esi, dword [ebx + 0x78]
mov edi, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x7c]
lea eax, [ebp + eax*4]
mov ecx, dword [esp + 0x48]
shl ecx, 2
mov edi, eax
mov esi, dword [esp + 0x4c]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x78]
jmp 0x45bc8d
xor edx, edx
xor eax, eax
jmp 0x45bc43
mov dword [esp + 0x3c], 1
jmp 0x45b9fc
mov dword [esp + 0x3c], eax
jmp 0x45b9f1
mov dword [esp + 0x3c], 0xffffffff
jmp 0x45b9fc
mov dword [esp + 0x3c], 0
jmp 0x45b9fc