Function at 0x49723c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x70
mov esi, dword [esp + 0x84]
mov eax, dword [0x42b238]
xor edi, edi
test esi, esi
mov dword [esp + 0x6c], eax
je 0x497648
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
test ebx, ebx
jle 0x49728d
mov eax, dword [esi + 0x20]
cmp eax, 0xb
jg 0x497297
mov cl, byte [ebp]
inc ebp
lea edx, [eax + 1]
cmp ebx, 1
lea ebx, [ebx - 1]
mov dword [esi + 0x20], edx
mov byte [esi + eax + 4], cl
jg 0x49726f
cmp dword [esi + 0x20], 0xc
jl 0x497648
cmp dword [esi + 0x18], 0
jne 0x497317
cmp byte [esi + 4], 0x42
movzx ecx, byte [esi + 0xa]
jne 0x4972c0
movzx eax, byte [esi + 0xb]
shl ecx, 8
or eax, ecx
mov dword [esi + 0x24], eax
movzx edx, byte [esi + 0xc]
movzx ecx, byte [esi + 0xd]
shl edx, 8
jmp 0x4972d7
movzx eax, byte [esi + 0xb]
shl eax, 8
or eax, ecx
mov dword [esi + 0x24], eax
movzx ecx, byte [esi + 0xd]
movzx edx, byte [esi + 0xc]
shl ecx, 8
add eax, 3
or ecx, edx
mov dword [esi + 0x2c], ecx
add ecx, 3
and eax, 0x1fffc
mov dword [esi + 0x28], eax
and ecx, 0x1fffc
or eax, 1
xor edi, edi
inc edi
mov dword [esi + 0x30], ecx
push edi
push eax
call fcn.0043f807
add esp, 8
mov dword [esi + 0x18], eax
push edi
push dword [esi + 0x30]
call fcn.0043f807
add esp, 8
xor edi, edi
mov dword [esi + 0x1c], eax
test ebx, ebx
jle 0x4973a5
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x20]
add ecx, 0xc
cmp eax, ecx
jge 0x497345
mov cl, byte [ebp]
mov edx, dword [esi + 0x18]
inc ebp
lea edi, [eax + 1]
cmp ebx, 1
lea ebx, [ebx - 1]
mov dword [esi + 0x20], edi
mov byte [edx + eax - 0xc], cl
jg 0x49731f
test ebx, ebx
jle 0x4973a3
lea eax, [esi + 0x28]
lea ecx, [esi + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x20]
lea eax, [edi + eax + 0xc]
cmp edx, eax
jge 0x497397
mov al, byte [ebp]
mov byte [esp], al
mov eax, ebx
mov ebx, ebp
mov ebp, esi
mov ecx, dword [esi + 0x1c]
lea esi, [edx + 1]
add edx, 0xfffffff4
mov dword [ebp + 0x20], esi
mov esi, ebp
mov ebp, ebx
mov ebx, eax
sub edx, edi
mov al, byte [esp]
inc ebp
cmp ebx, 1
lea ebx, [ebx - 1]
mov byte [ecx + edx], al
jg 0x497357
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
xor edi, edi
jmp 0x4973ab
xor edi, edi
lea eax, [esi + 0x28]
lea ecx, [esi + 0x30]
mov eax, dword [eax]
mov ecx, dword [ecx]
lea eax, [eax + ecx + 0xc]
cmp dword [esi + 0x20], eax
jl 0x497648
cmp dword [esi + 0x34], 0
je 0x4973d9
add esi, 0x50
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push ebp
push eax
call dword [ecx + 8]
add esp, 0xc
mov edi, eax
jmp 0x497648
cmp byte [esi + 4], 0x42
movzx eax, byte [esi + 6]
jne 0x4973f9
movzx edi, byte [esi + 7]
shl eax, 8
movzx ecx, byte [esi + 9]
or edi, eax
movzx eax, byte [esi + 8]
shl eax, 8
jmp 0x49740d
movzx edi, byte [esi + 7]
movzx ecx, byte [esi + 9]
shl edi, 8
shl ecx, 8
or edi, eax
movzx eax, byte [esi + 8]
or ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x50], 0
je 0x497430
push 0x36c
push str..._x11fwd.c
push str._xconn__s
call fcn.004a509d
add esp, 0xc
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x20]
mov byte [eax + ecx], 0
mov dword [edx], 0
mov ecx, dword [esi + 0x44]
call fcn.00497800
test eax, eax
mov dword [esp + 0x18], edi
je 0x497459
mov eax, dword [esi + 0x48]
jmp 0x49745c
xor eax, eax
dec eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0x18]
mov dword [esp + 0x10], eax
push str.MIT_MAGIC_COOKIE_1
push edi
call fcn.004a7d00
add esp, 8
test eax, eax
je 0x4974be
push str.XDM_AUTHORIZATION_1
push edi
call fcn.004a7d00
add esp, 8
mov edx, str.Unsupported_authorisation_protocol
test eax, eax
mov edi, 0
jne 0x497641
lea eax, [esp + 0x38]
mov dword [eax - 0x14], 2
jmp 0x4974d2
mov ecx, dword [esp + 4]
lea eax, [esp + 0x28]
xor edi, edi
mov dword [eax - 4], 1
mov dword [eax + 4], ecx
mov ecx, dword [esp]
mov dword [eax], ecx
lea eax, [esp + 0x24]
push 0
push eax
push dword [esp + 0x10]
call fcn.0047e50d
add esp, 0xc
test eax, eax
je 0x49763c
cmp dword [eax], 2
jne 0x4976c8
cmp dword [esp + 4], 0x18
mov edx, str.XDM_AUTHORIZATION_1_data_was_wrong_length
jne 0x497641
cmp dword [esp + 0xc], 0xffffffff
je 0x49765b
mov dword [esp + 8], eax
mov eax, dword [eax + 4]
add eax, 9
push 0x18
push dword [esp + 4]
push eax
call fcn.0045fd6c
add esp, 0xc
push 8
push dword [esp + 4]
mov eax, dword [esp + 0x10]
push dword [eax + 4]
call fcn.00498a6d
add esp, 0xc
mov edx, str.XDM_AUTHORIZATION_1_data_failed_check
test eax, eax
jne 0x497641
mov ecx, dword [esp]
mov eax, dword [ecx + 8]
bswap eax
cmp eax, dword [esp + 0x10]
jne 0x497641
movzx eax, byte [ecx + 0xc]
movzx ecx, byte [ecx + 0xd]
shl eax, 8
or ecx, eax
cmp ecx, dword [esp + 0xc]
jne 0x497641
mov ecx, dword [esp]
lea eax, [ecx + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xe]
bswap eax
mov dword [esp + 4], eax
mov eax, 0x11
cmp byte [ecx + eax + 1], 0
jne 0x497641
inc eax
cmp eax, 0x16
jle 0x497592
push 0
call fcn.004a48c4
add esp, 4
mov ecx, dword [esp + 4]
mov edx, str.XDM_AUTHORIZATION_1_time_stamp_was_too_far_out
lea ecx, [ecx + 0x4b0]
sub ecx, eax
mov eax, dword [esp + 8]
cmp ecx, 0x960
ja 0x497641
mov dword [esp + 0x10], ebx
mov ebx, ebp
push 0xc
push 1
mov edi, eax
call fcn.0043f807
add esp, 8
mov ecx, dword [esp + 4]
mov ebp, eax
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
movzx edx, word [ecx + 4]
mov word [eax + 8], dx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x49761c
push 0x1ac
push str..._x11fwd.c
push str.auth__xdmseen___NULL
call fcn.004a509d
add esp, 0xc
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x18]
push ebp
push eax
call fcn.0047dcb3
add esp, 8
cmp eax, ebp
je 0x497662
push ebp
call fcn.0043f9d4
add esp, 4
mov edx, str.XDM_AUTHORIZATION_1_data_replayed
xor edi, edi
jmp 0x497641
mov edx, str.Authorisation_not_recognised
mov ecx, esi
call fcn.00497875
mov ecx, dword [esp + 0x6c]
call fcn.00497c4a
mov eax, edi
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, str.cannot_do_XDM_AUTHORIZATION_1_without_remote_address_data
jmp 0x497641
mov ebp, ebx
mov ebx, dword [esp + 0x10]
xor edi, edi
jmp 0x497682
push 0
push dword [eax + 0x18]
call fcn.0047e541
add esp, 8
push eax
call fcn.0043f9d4
add esp, 4
push 0
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
call fcn.0047e33c
add esp, 8
test eax, eax
jne 0x4976b6
push 0x1b5
push str..._x11fwd.c
push str.seen___NULL
mov dword [esp + 0xc], eax
call fcn.004a509d
mov eax, dword [esp + 0xc]
add esp, 0xc
mov ecx, dword [esp + 4]
sub ecx, dword [eax]
mov eax, dword [esp + 8]
cmp ecx, 0x4b1
jae 0x49766c
mov edx, eax
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4976fa
movzx ecx, byte [esi + 4]
push ebx
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x24]
push ecx
push dword [esi + 0x48]
push dword [esi + 0x44]
push dword [edx + 0x24]
push eax
push dword [esi + 0x4c]
call fcn.0044879f
add esp, 0x28
jmp 0x497648
mov dword [esp + 4], ebp
push dword [esi + 0x4c]
mov edi, edx
call fcn.004487f8
add esp, 4
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x14], eax
push dword [esi + 0x4c]
call fcn.00448020
add esp, 4
mov dword [esp], eax
mov eax, dword [esi + 0x14]
mov ebp, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
push dword [eax + 0x14]
call fcn.00490ca4
add esp, 4
xor ecx, ecx
push dword [esp]
push esi
push ecx
push ecx
push 1
push ecx
push ebp
push edi
push eax
call fcn.00441484
add esp, 0x24
mov dword [esi + 0x50], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
add esp, 4
test eax, eax
je 0x497782
push eax
push str.unable_to_connect_to_forwarded_X_server:__s
call fcn.0043f758
add esp, 8
mov ebx, eax
mov ecx, esi
mov edx, ebx
call fcn.00497875
push ebx
call fcn.0043f9d4
add esp, 4
xor edi, edi
jmp 0x497648
lea eax, [esi + 0x50]
mov ebp, esi
lea edi, [esp + 0x1c]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [eax + 4], 0x302e30
mov dword [eax], 0x2e302e30
mov ecx, dword [esi + 0x14]
movzx edx, byte [esi + 4]
push edi
push 0
push eax
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push edx
call fcn.00497956
add esp, 0x24
mov edi, eax
mov eax, dword [ebp + 0x50]
lea edx, [esp + 0x1c]
mov esi, dword [edx]
mov ecx, dword [eax]
push esi
push edi
push eax
call dword [ecx + 8]
add esp, 0xc
push esi
push edi
call fcn.0048f5d3
add esp, 8
push edi
call fcn.0043f9d4
add esp, 4
mov dword [ebp + 0x34], 1
mov esi, dword [esp]
mov ebp, dword [esp + 4]
jmp 0x4973c5