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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x46bb1f
mov edi, dword [ebp + 0x18]
mov dword [esi + 4], 0
or edi, 0x10000
mov dword [esi + 0x60], 0
mov dword [esi + 0xbc], edi
mov dword [esi + 8], 0
test ebx, ebx
je 0x46b6ac
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x46b6a0
test byte [esi + 0xc], 1
jne 0x46b9b3
mov eax, dword [esi + 0xc]
mov dword [esi + 0x1c], ebx
or eax, 1
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x46ba8d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x46bac3
push edx
push edx
push 2
push eax
call fcn.004d8e70
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x38]
add esp, 0x10
mov dword [esi + 0x20], edx
mov edx, dword [eax + 0x3c]
mov dword [esi + 0x24], edx
mov edx, dword [eax + 0x74]
mov dword [esi + 0x28], edx
mov edx, dword [eax + 0x78]
mov dword [esi + 0x2c], edx
mov edx, dword [eax + 0x44]
mov dword [esi + 0x30], edx
mov dword [eax + 0x38], 0x46aa10
mov edx, dword [eax + 0x64]
mov dword [eax + 0x44], 0x46ab50
mov dword [eax + 0x48], 0x46ab50
mov dword [eax + 0x3c], 0x46aa70
mov dword [esi + 0x34], edx
mov dword [eax + 0x74], 0x46aaa0
mov dword [eax + 0x78], 0x46ab20
mov dword [eax + 0x64], 0x46ab80
mov dword [esi], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
test ebx, ebx
je 0x46b95a
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax + 0x10]
push eax
call fcn.004d4960
add esp, 0x10
cmp eax, 3
jbe 0x46b9d2
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x46ba08
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov eax, dword [eax + 0x10]
push eax
call fcn.004d4960
add esp, 0x10
cmp eax, 3
ja 0x46b91f
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [esi + 0x18]
push eax
call fcn.0044d900
mov dword [esi + 0x38], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x3c], 0
add esp, 0x20
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x46baa5
mov eax, dword [esi + 0x58]
test eax, eax
je 0x46b968
mov edx, dword [ebx + 0x128]
test edx, edx
je 0x46b9fd
cmp eax, edx
je 0x46b7ee
sub esp, 0xc
push eax
call fcn.004cfa20
mov ebx, dword [esi + 0x14]
add esp, 0x10
mov eax, dword [ebx + 0x128]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0xa4]
mov dword [ebx + 0x110], esi
mov dword [ebx + 0x118], 1
mov dword [ebx + 0x16c], 1
mov dword [ebx + 0x134], 1
mov dword [ebx + 0x1b4], 5
test eax, eax
je 0x46b83c
sub esp, 0xc
push eax
call fcn.004484f0
mov dword [esi + 0xa4], 0
add esp, 0x10
test edi, 0x400
jne 0x46b984
mov dword [esi + 0x9c], 0
mov eax, dword [esi + 0xb4]
mov dword [esi + 0xa8], 0
test eax, eax
je 0x46b9e4
mov edx, dword [esi + 0xac]
test edx, edx
jle 0x46b8ab
dec edx
mov eax, dword [esi + 0xb4]
mov dword [esi + 0xac], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x46b870
sub esp, 0xc
push eax
call fcn.004de500
mov edx, dword [esi + 0xac]
mov eax, dword [esi + 0xb4]
add esp, 0x10
test edx, edx
mov dword [eax + edx*4], 0
jg 0x46b874
test edi, 0x10
je 0x46b8ba
mov dword [esi + 8], 1
push eax
push eax
push edi
mov edi, dword [esi + 0x14]
push edi
call fcn.0044bb30
mov ebx, dword [ebp + 0x14]
add esp, 0x10
test ebx, ebx
je 0x46b8f2
sub esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004d3fb0
add esp, 0x10
test eax, eax
je 0x46b8f2
push edx
push edx
push eax
mov eax, dword [esi + 0x14]
push eax
call fcn.00437f50
add esp, 0x10
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x46b90e
mov eax, dword [esi + 0x14]
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x46b90e
mov eax, dword [ebx + 4]
test eax, eax
je 0x46bae1
mov dword [esi + 4], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x1c]
sub esp, 0xc
mov ebx, dword [eax + 0x10]
push ebx
call fcn.004d4780
pop ecx
mov edx, dword [ebp + 0x10]
push edx
push 4
push eax
push 0
mov eax, dword [esi + 0x18]
push eax
call fcn.0044d900
add esp, 0x20
mov dword [esi + 0x14], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
jmp 0x46b7ae
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x14]
test eax, eax
jne 0x46b7c4
mov eax, dword [ebx + 0x128]
test eax, eax
je 0x46bb0c
mov eax, dword [ebx + 0x128]
mov dword [esi + 0x58], eax
jmp 0x46b7ee
mov dword [esi + 0x9c], 1
push eax
push 0xffffffffffffffff
push 0x533d44
mov eax, dword [esi + 0x58]
sub edi, 0x400
push eax
call fcn.004cf170
add esp, 0x10
mov dword [esi + 0xa0], eax
jmp 0x46b852
sub esp, 0xc
push eax
call fcn.0048cbd0
mov eax, dword [esi + 0xc]
add esp, 0x10
dec eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], eax
jmp 0x46b6a0
push eax
push eax
push 4
push ebx
call fcn.0048ea30
add esp, 0x10
jmp 0x46b75e
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
jmp 0x46b86a
mov dword [ebx + 0x128], eax
jmp 0x46b7ee
sub esp, 0xc
push eax
call fcn.0044c810
mov dword [esp], 0
call fcn.0048cf10
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46bb04
sub esp, 0xc
mov eax, dword [esi + 0x14]
push eax
call fcn.00437050
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x46bb37
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x46baf8
sub esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004ce2e0
add esp, 0x10
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
push edx
push edx
push ebx
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004d4a50
pop eax
pop edx
push ebx
mov ecx, dword [esi + 0x14]
push ecx
call fcn.0044c5e0
add esp, 0x10
mov dword [esi + 0x3c], 0
jmp 0x46b7ae
sub esp, 0xc
push 0x64
call fcn.004d4f80
add esp, 0x10
mov dword [esi + 0x54], eax
test eax, eax
jne 0x46b6b7
mov eax, dword [0x61e0b0]
push edx
push edx
push str.xmlTextReaderSetup_:_malloc_failed_n
push eax
call dword [0x5190a8]
or eax, 0xffffffff
add esp, 0x10
jmp 0x46b917
sub esp, 0xc
push pe_nt_image_headers32
call dword [0x519084]
add esp, 0x10
mov dword [esi + 0x18], eax
test eax, eax
jne 0x46b6c2
jmp 0x46baa5
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
call fcn.00483c60
add esp, 0x10
mov dword [ebx + 4], eax
jmp 0x46b90e
mov dword [ebx + 4], 0
jmp 0x46ba61
or eax, 0xffffffff
jmp 0x46b917
call fcn.004cfbf0
mov dword [ebx + 0x128], eax
mov ebx, dword [esi + 0x14]
jmp 0x46b976
test ebx, ebx
je 0x46bb04
sub esp, 0xc
push ebx
call fcn.0048cbd0
or eax, 0xffffffff
add esp, 0x10
jmp 0x46b917
sub esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.0048cbd0
or eax, 0xffffffff
add esp, 0x10
jmp 0x46b917