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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, edx
mov ebx, ecx
mov eax, dword [ecx + 0x110]
mov dword [esp + 0x3c], eax
mov esi, dword [ecx + 0x160]
lea ecx, [esi + 0x68]
mov dword [ebx + 0x110], 1
cmp dword [esi + 0x68], 0
mov dword [esp + 0x1c], ecx
jne 0x50d288
mov ecx, dword [esp + 0x1c]
call fcn.0050d0b0
test al, al
je 0x50d8ad
mov dword [esp + 0x30], edi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x74]
mov dword [esp + 0x20], ecx
lea ecx, [ebx + 0x19c]
mov dword [esp + 0x2c], ecx
lea ecx, [ebx + 0x1a8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x84]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x10]
mov esi, ebx
mov dword [esp + 8], ebx
jmp 0x50d2fd
mov eax, dword [esp + 4]
add eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
cmp dword [ecx + 0x70], eax
je 0x50d470
lea ecx, [eax + 1]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
mov byte [eax], 0xa
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
push ecx
push eax
push edi
mov eax, dword [esp + 0x3c]
push eax
call dword [eax + 0x14]
add esp, 0x10
mov ebx, eax
mov ecx, esi
mov edx, eax
mov eax, dword [ebp + 0x10]
push eax
push 0x1748
push dword [esp + 0x18]
mov dword [esp + 0x10], edi
push edi
call fcn.0050bb10
add esp, 0x10
test al, al
je 0x50d8b4
add ebx, 4
cmp ebx, 0x20
mov edi, dword [esp + 0x30]
ja case.0x50d349.2
xor edx, edx
jmp dword [ebx*4 + 0x56c650]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
mov esi, dword [esp + 0x14]
jne 0x50d86d
jmp 0x50d860
mov dword [esp + 0x18], 0
push dword [esp + 4]
push edi
call dword [edi + 0x28]
add esp, 8
test eax, eax
js 0x50d9e6
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.005307d0
test eax, eax
jle 0x50d2ee
mov esi, eax
xor ebx, ebx
jmp 0x50d3d1
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
movzx ecx, byte [esp + ebx + 0x18]
lea edx, [eax + 1]
mov edi, dword [esp + 0x20]
mov dword [edi], edx
mov byte [eax], cl
add ebx, 1
cmp esi, ebx
je 0x50d2ee
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
cmp dword [ecx + 0x70], eax
jne 0x50d3b6
mov ecx, dword [esp + 0x1c]
call fcn.0050d0b0
test al, al
jne 0x50d3b0
jmp 0x50d890
mov eax, dword [esp + 8]
cmp byte [eax + 0x1e4], 0
jne 0x50d408
cmp dword [eax + 0x90], edi
je 0x50da41
mov ecx, dword [edi + 0x40]
mov eax, dword [esp + 4]
add eax, ecx
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
mov esi, dword [esp + 0x2c]
jne 0x50d43d
mov dword [esp + 0xc], ecx
mov ecx, esi
call fcn.0050d0b0
mov ecx, dword [esp + 0xc]
test al, al
je 0x50d890
sub ebx, ecx
nop
mov eax, dword [esp + 8]
push dword [eax + 0x1a4]
push dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x24]
push eax
push edi
call dword [edi + 0x38]
add esp, 0x14
cmp eax, 2
jb 0x50d48c
mov ecx, esi
call fcn.0050d0b0
test al, al
jne 0x50d440
jmp 0x50d890
mov ecx, dword [esp + 0x1c]
call fcn.0050d0b0
test al, al
je 0x50d890
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
jmp 0x50d2e2
mov esi, dword [esp + 8]
cmp dword [esi + 0x1ac], 0
mov edx, 1
je 0x50d895
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0x1a4]
jne 0x50d4cc
mov ecx, dword [esp + 0x2c]
call fcn.0050d0b0
test al, al
je 0x50d890
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov edx, 1
lea ecx, [eax + 1]
mov dword [esi + 0x1a8], ecx
mov byte [eax], 0
mov eax, dword [esi + 0x1ac]
test eax, eax
je 0x50d895
mov ebx, dword [esp + 8]
mov ecx, ebx
mov edx, dword [esp + 0x38]
push 0
push eax
call fcn.0050c6a0
add esp, 8
mov ecx, dword [ebx + 0x1ac]
mov dword [ebx + 0x1a8], ecx
test eax, eax
je 0x50da0a
cmp byte [eax + 0x20], 0
mov ecx, dword [esp + 0x14]
jne 0x50da21
cmp dword [eax + 0x10], 0
je 0x50d6cf
cmp dword [ebx + 0x70], 0
je 0x50d6be
mov byte [ecx + 0x83], 0
mov byte [eax + 0x20], 1
mov ecx, ebx
nop
mov esi, ecx
mov ecx, dword [ecx + 0x1d8]
test ecx, ecx
jne 0x50d540
add dword [esi + 0x210], 1
mov ecx, dword [esi + 0x214]
mov edx, dword [esi + 0x218]
add ecx, 1
mov dword [esi + 0x214], ecx
cmp ecx, edx
jbe 0x50d575
add edx, 1
mov dword [esi + 0x218], edx
cmp dword [esi + 0x21c], 0
jle 0x50d5f2
mov ebx, dword [eax]
push 2
mov dword [esp + 8], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x214]
mov eax, dword [esp + 4]
cmp byte [eax + 0x21], 0
lea edx, [ecx + ecx - 2]
mov eax, 0x56d17f
mov edi, 0x56d181
cmove eax, edi
push 0x1773
mov edi, dword [esp + 8]
push dword [edi + 8]
push str.OPEN
push ebx
mov ebx, dword [esp + 0x18]
push eax
push 0x56d524
push edx
push dword [esi + 0x218]
push ecx
push dword [esi + 0x210]
push esi
push str.expat:_Entities__p_:_Count__9d__depth__2d__2d__s_s_s___s_length__d__xmlparse.c:_d__n
push dword [esp + 0x3c]
call fcn.0050e880
mov eax, dword [esp + 0x38]
add esp, 0x34
push dword [eax + 0x18]
push dword [eax + 0x10]
mov edi, eax
push dword [eax + 0x14]
push 0
push dword [ebx + 0x74]
call dword [ebx + 0x70]
add esp, 0x14
mov ecx, ebx
test eax, eax
je 0x50da55
nop word cs:[eax + eax]
nop dword [eax]
mov esi, ecx
mov ecx, dword [ecx + 0x1d8]
test ecx, ecx
jne 0x50d620
cmp dword [esi + 0x21c], 0
mov ebx, edi
jle 0x50d69e
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esi + 0x214]
cmp byte [ebx + 0x21], 0
lea edx, [ecx + ecx - 2]
mov eax, 0x56d17f
mov edi, 0x56d181
cmove eax, edi
push 0x177c
push dword [ebx + 8]
push str.CLOSE
push dword [esp + 0x18]
push eax
push 0x56d524
push edx
push dword [esi + 0x218]
push ecx
push dword [esi + 0x210]
push esi
push str.expat:_Entities__p_:_Count__9d__depth__2d__2d__s_s_s___s_length__d__xmlparse.c:_d__n
push dword [esp + 0x34]
call fcn.0050e880
add esp, 0x34
add dword [esi + 0x214], 0xffffffff
mov byte [ebx + 0x20], 0
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x83], 0
jne 0x50d2ee
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x82]
mov byte [ecx + 0x80], al
jmp 0x50d2ee
mov byte [eax + 0x20], 1
mov ecx, ebx
nop word cs:[eax + eax]
nop
mov esi, ecx
mov ecx, dword [ecx + 0x1d8]
test ecx, ecx
jne 0x50d6e0
add dword [esi + 0x210], 1
mov ecx, dword [esi + 0x214]
mov edx, dword [esi + 0x218]
add ecx, 1
mov dword [esi + 0x214], ecx
cmp ecx, edx
jbe 0x50d715
add edx, 1
mov dword [esi + 0x218], edx
cmp dword [esi + 0x21c], 0
mov ecx, eax
jle 0x50d794
mov ebx, dword [ecx]
push 2
mov dword [esp + 8], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x214]
mov eax, dword [esp + 4]
cmp byte [eax + 0x21], 0
lea edx, [ecx + ecx - 2]
mov eax, 0x56d17f
mov edi, 0x56d181
cmove eax, edi
push 0x1784
mov edi, dword [esp + 8]
push dword [edi + 8]
push str.OPEN
push ebx
mov ebx, dword [esp + 0x18]
push eax
push 0x56d524
push edx
push dword [esi + 0x218]
push ecx
push dword [esi + 0x210]
push esi
push str.expat:_Entities__p_:_Count__9d__depth__2d__2d__s_s_s___s_length__d__xmlparse.c:_d__n
push dword [esp + 0x3c]
call fcn.0050e880
mov ecx, dword [esp + 0x38]
add esp, 0x34
mov edx, dword [ebx + 0xe0]
mov eax, dword [ecx + 4]
mov edi, ecx
mov esi, dword [ecx + 8]
add esi, eax
mov ecx, ebx
push 1
push esi
push eax
call fcn.0050d240
add esp, 0xc
mov edx, eax
nop word cs:[eax + eax]
nop
mov esi, ebx
mov ebx, dword [ebx + 0x1d8]
test ebx, ebx
jne 0x50d7c0
cmp dword [esi + 0x21c], 0
mov ebx, edi
jle 0x50d846
mov eax, dword [ebx]
mov dword [esp + 0x34], eax
push 2
mov dword [esp + 8], edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x214]
cmp byte [ebx + 0x21], 0
lea edx, [ecx + ecx - 2]
mov eax, 0x56d17f
mov edi, 0x56d181
cmove eax, edi
push 0x1789
push dword [ebx + 8]
push str.CLOSE
push dword [esp + 0x40]
push eax
push 0x56d524
push edx
push dword [esi + 0x218]
push ecx
push dword [esi + 0x210]
push esi
push str.expat:_Entities__p_:_Count__9d__depth__2d__2d__s_s_s___s_length__d__xmlparse.c:_d__n
push dword [esp + 0x3c]
call fcn.0050e880
mov edx, dword [esp + 0x38]
add esp, 0x34
add dword [esi + 0x214], 0xffffffff
mov byte [ebx + 0x20], 0
test edx, edx
je 0x50d2ee
jmp 0x50d895
mov ecx, dword [esp + 0x1c]
call fcn.0050d0b0
test al, al
je 0x50d890
push dword [esi + 0x70]
push dword [esp + 0x24]
push ebx
lea eax, [esp + 0x24]
push eax
push edi
call dword [edi + 0x38]
add esp, 0x14
cmp eax, 2
jae 0x50d860
cmp dword [esi + 0x78], 0
jne 0x50d2ee
mov edx, 1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x110], ecx
mov eax, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 1
jmp 0x50d8a3
mov eax, dword [esp + 8]
nop dword [eax + eax]
mov esi, eax
mov eax, dword [eax + 0x1d8]
test eax, eax
jne 0x50d8c0
mov edx, 0x2b
cmp dword [esi + 0x200], 0
jle 0x50d895
mov ecx, dword [esi + 0x1f0]
mov eax, dword [esi + 0x1f4]
mov edx, ecx
or edx, eax
je 0x50d957
movd xmm0, ecx
add ecx, dword [esi + 0x1f8]
movd xmm1, ecx
mov ecx, dword [esi + 0x1fc]
adc ecx, eax
movd xmm2, ecx
punpckldq xmm1, xmm2
movd xmm2, eax
movq qword [esp + 0x50], xmm1
shr ecx, 0x1f
fild qword [esp + 0x50]
fadd dword [ecx*4 + 0x56c648]
punpckldq xmm0, xmm2
fstp dword [esp + 0x40]
movss xmm1, dword [esp + 0x40]
movq qword [esp + 0x48], xmm0
shr eax, 0x1f
fild qword [esp + 0x48]
fadd dword [eax*4 + 0x56c648]
fstp dword [esp + 0x44]
divss xmm1, dword [esp + 0x44]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
jmp 0x50d95f
movsd xmm0, qword [0x56c640]
movsd qword [esp + 0x20], xmm0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
movups xmm0, xmmword [esi + 0x1f0]
sub esp, 0x28
movsd xmm1, qword [esp + 0x48]
movsd qword [esp + 0x1c], xmm1
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 0x24], str._ABORTING_n
mov dword [esp + 4], str.expat:_Accounting__p_:_Direct__10llu__indirect__10llu__amplification__8.2f_s
call fcn.0050e880
add esp, 0x28
mov edx, 0x2b
jmp 0x50d895
mov edx, 0x17
jmp 0x50d9eb
mov edx, 4
jmp 0x50d9eb
mov edx, 4
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x90], edi
jne 0x50d895
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x11c], eax
jmp 0x50d895
mov edx, 0xe
mov eax, dword [esp + 8]
cmp dword [eax + 0x90], edi
jne 0x50d895
mov ecx, dword [esp + 4]
mov dword [eax + 0x11c], ecx
jmp 0x50d895
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x82]
mov byte [ecx + 0x80], al
xor edx, edx
jmp 0x50d895
mov edx, 0xc
cmp dword [ebx + 0x90], edi
jne 0x50d895
mov eax, dword [esp + 4]
mov dword [ebx + 0x11c], eax
jmp 0x50d895
mov ecx, dword [esp + 4]
mov dword [eax + 0x11c], ecx
mov edx, 0xa
jmp 0x50d895
mov ecx, ebx
mov esi, edi
mov edx, edi
push 0x1777
call fcn.0050e280
add esp, 4
mov byte [edi + 0x20], 0
mov edx, 0x15
jmp 0x50d895