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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jne 0x4e36b9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e373c
push eax
call sym.KomManager.exe_xmlFreeParserInputBuffer
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
or ebx, 0x10000
mov dword [esp + 0x14], ebx
mov dword [esi + 4], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0xbc], ebx
mov dword [esi + 8], 0
test edi, edi
je 0x4e370a
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4e3703
test byte [esi + 0xc], 1
je 0x4e3703
push eax
call sym.KomManager.exe_xmlFreeParserInputBuffer
add esp, 4
dec dword [esi + 0xc]
or dword [esi + 0xc], 1
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4e3744
push 0x64
call fcn.00469830
add esp, 4
mov dword [esi + 0x54], eax
test eax, eax
jne 0x4e3744
call sym.KomManager.exe___xmlGenericError
mov esi, eax
call sym.KomManager.exe___xmlGenericErrorContext
push str.xmlTextReaderSetup_:_malloc_failed_n
push dword [eax]
mov eax, dword [esi]
call eax
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push 5
push eax
call fcn.00469970
mov eax, dword [esi + 0x18]
add esp, 8
test eax, eax
jne 0x4e376b
push 0x80
call dword [sym.KomManager.exe_xmlMalloc]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4e3722
push 2
push eax
call sym.KomManager.exe_xmlSAXVersion
mov ecx, dword [esi + 0x18]
add esp, 8
mov eax, dword [ecx + 0x38]
mov dword [esi + 0x20], eax
mov dword [ecx + 0x38], 0x4e67c0
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x24], eax
mov dword [ecx + 0x3c], 0x4e6820
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x6c], 0xdeedbeaf
jne 0x4e37c4
mov eax, dword [ecx + 0x74]
mov dword [esi + 0x28], eax
mov dword [ecx + 0x74], 0x4e6840
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
mov dword [esi + 0x2c], eax
mov dword [ecx + 0x78], 0x4e68b0
mov ecx, dword [esi + 0x18]
jmp 0x4e37d2
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov eax, dword [ecx + 0x44]
mov ebp, dword [esp + 0x1c]
mov dword [esi + 0x30], eax
mov dword [ecx + 0x44], 0x4e68d0
mov eax, dword [esi + 0x18]
mov dword [eax + 0x48], 0x4e68d0
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x64]
mov dword [esi + 0x34], eax
mov dword [ecx + 0x64], 0x4e68f0
mov dword [esi], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
test edi, edi
je 0x4e3905
mov eax, dword [esi + 0x1c]
push dword [eax + 0x10]
call sym.KomManager.exe_xmlBufUse
add esp, 4
cmp eax, 4
jae 0x4e3837
push 4
push edi
call sym.KomManager.exe_xmlParserInputBufferRead
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4e388b
mov eax, dword [esi + 0x1c]
push dword [eax + 0x10]
call sym.KomManager.exe_xmlBufUse
add esp, 4
cmp eax, 4
jb 0x4e3868
mov eax, dword [esi + 0x1c]
mov edi, 4
push dword [eax + 0x10]
call sym.KomManager.exe_xmlBufContent
add esp, 4
mov ecx, edi
jmp 0x4e386e
xor edi, edi
xor eax, eax
xor ecx, ecx
push ebp
push ecx
push eax
mov eax, dword [esi + 0x18]
push 0
push eax
call sym.KomManager.exe_xmlCreatePushParserCtxt
mov dword [esi + 0x14], eax
add esp, 0x14
mov dword [esi + 0x38], 0
jmp 0x4e38f8
push eax
call sym.KomManager.exe_xmlCtxtReset
push 0
call sym.KomManager.exe_xmlAllocParserInputBuffer
mov edi, eax
add esp, 8
test edi, edi
je 0x4e373c
push dword [esi + 0x14]
call sym.KomManager.exe_xmlNewInputStream
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4e38c7
push edi
call sym.KomManager.exe_xmlFreeParserInputBuffer
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test ebp, ebp
jne 0x4e38cf
xor eax, eax
jmp 0x4e38d8
push ebp
call sym.KomManager.exe_xmlCanonicPath
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx], edi
push ebx
push dword [edi + 0x10]
call fcn.0046a6f0
push ebx
push dword [esi + 0x14]
call sym.KomManager.exe_inputPush
mov ebx, dword [esp + 0x24]
add esp, 0x10
xor edi, edi
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x14], 0
je 0x4e3722
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x58]
mov edx, dword [ecx + 0x128]
test eax, eax
je 0x4e3933
test edx, edx
je 0x4e3928
cmp eax, edx
je 0x4e3951
push eax
call sym.KomManager.exe_xmlDictFree
add esp, 4
jmp 0x4e3945
mov dword [ecx + 0x128], eax
mov ecx, dword [esi + 0x14]
jmp 0x4e3951
test edx, edx
jne 0x4e3948
call sym.KomManager.exe_xmlDictCreate
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0x128], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0x128]
mov dword [esi + 0x58], eax
mov dword [ecx + 0x110], esi
mov eax, dword [esi + 0x14]
mov dword [eax + 0x118], 1
mov eax, dword [esi + 0x14]
mov dword [eax + 0x16c], 1
mov eax, dword [esi + 0x14]
mov dword [eax + 0x134], 1
mov eax, dword [esi + 0x14]
mov dword [eax + 0x1b4], 5
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4e39a8
push eax
call sym.KomManager.exe_xmlXIncludeFreeContext
add esp, 4
mov dword [esi + 0xa4], 0
test ebx, 0x400
je 0x4e39da
push 0xffffffffffffffff
push str.include
push dword [esi + 0x58]
mov dword [esi + 0x9c], 1
call sym.KomManager.exe_xmlDictLookup
add esp, 0xc
mov dword [esi + 0xa0], eax
sub ebx, 0x400
jmp 0x4e39e4
mov dword [esi + 0x9c], 0
cmp dword [esi + 0xb4], 0
mov dword [esi + 0xa8], 0
jne 0x4e3a0d
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
jmp 0x4e3a5a
mov ecx, dword [esi + 0xac]
test ecx, ecx
jle 0x4e3a5a
nop word [eax + eax]
mov eax, dword [esi + 0xb4]
dec ecx
mov dword [esi + 0xac], ecx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4e3a56
push eax
call sym.KomManager.exe_xmlFreePattern
mov ecx, dword [esi + 0xac]
add esp, 4
mov eax, dword [esi + 0xb4]
mov dword [eax + ecx*4], 0
mov ecx, dword [esi + 0xac]
test ecx, ecx
jg 0x4e3a20
test bl, 0x10
je 0x4e3a66
mov dword [esi + 8], 1
push ebx
push dword [esi + 0x14]
call sym.KomManager.exe_xmlCtxtUseOptions
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4e3a93
push eax
call sym.KomManager.exe_xmlFindCharEncodingHandler
add esp, 4
test eax, eax
je 0x4e3a93
push eax
push dword [esi + 0x14]
call sym.KomManager.exe_xmlSwitchToEncoding
add esp, 8
test ebp, ebp
je 0x4e3ab9
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4e3ab9
cmp dword [eax + 4], 0
jne 0x4e3ab9
push ebp
call sym.KomManager.exe_xmlStrdup
mov ecx, dword [esi + 0x14]
add esp, 4
mov ecx, dword [ecx + 0x24]
mov dword [ecx + 4], eax
pop edi
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ebp
pop ebx
ret